Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

高速化 #19

Open
rrbox opened this issue Aug 15, 2022 · 5 comments
Open

高速化 #19

rrbox opened this issue Aug 15, 2022 · 5 comments

Comments

@rrbox
Copy link
Owner

rrbox commented Aug 15, 2022

SIMD を使用した配列オブジェクトを試作し, 転写, 相補鎖の生成などがどれだけ高速化されるか検証する.

@rrbox
Copy link
Owner Author

rrbox commented Aug 15, 2022

#20 相補鎖の生成速度については 2倍以上向上した.

@rrbox
Copy link
Owner Author

rrbox commented Aug 15, 2022

複合塩基数の集計にはあまり向かないようであった. むしろ4倍遅くなった.

@rrbox
Copy link
Owner Author

rrbox commented Aug 15, 2022

Uint8 の比較を, .< オペレーターを使うとうまくいくかもしれない.

@rrbox
Copy link
Owner Author

rrbox commented Aug 15, 2022

SIMDMask を算出する.<演算を検討したが, 実行速度は改善されず, 以前同様4倍ほど遅かった.

@rrbox rrbox changed the title SIMD による高速化 高速化 Aug 16, 2022
@rrbox
Copy link
Owner Author

rrbox commented Aug 17, 2022

N を無視しない複合塩基数の集計 の計算で, 以下のような改善が見られた.

  • Accelerate の simd を一部使用した結果, SIMD を使用しない配列と同程度の速度まで改善した(10万塩基).
  • 100 万塩基, 1000 万塩基の計算では, 1.1 倍ほど高速になった.
  • 劇的な高速化はできなかった.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant