Daniel-Liu-c0deb0t / block-aligner

SIMD-accelerated library for computing global and X-drop affine gap penalty sequence-to-sequence or sequence-to-profile alignments using an adaptive block-based algorithm.
https://crates.io/crates/block_aligner
MIT License
124 stars 7 forks source link

Option to reuse memory when block aligner is reallocated #2

Closed Daniel-Liu-c0deb0t closed 2 years ago

Daniel-Liu-c0deb0t commented 3 years ago

Profiling shows that this could save maybe 20% of time when block aligner is repeatedly created and destroyed. One way to reuse memory could be to allow an old block aligner instance to be moved into a new one, and the new one can repurpose the allocated memory regions of the old one.