Skip to content

perf: parallelize per-record feature extraction in ft fire -f#104

Merged
mrvollger merged 1 commit intomainfrom
perf/fire-parallel-feature-extract
Apr 22, 2026
Merged

perf: parallelize per-record feature extraction in ft fire -f#104
mrvollger merged 1 commit intomainfrom
perf/fire-parallel-feature-extract

Conversation

@mrvollger
Copy link
Copy Markdown
Member

Summary

  • Switch the inner FireFeats construction in the -f (streaming feature-extraction) path from .iter() to .par_iter().
  • FireFeats::new is per-read with no cross-record state, so rayon gives a straightforward speedup on wide chunks when -t > 1.

Test plan

  • cargo test passes
  • Output is deterministic — md5 identical at 1 vs 8 threads on the test BAM

Switch the FireFeats construction from .iter() to .par_iter() in the -f
(streaming feature-extraction) path. FireFeats::new is per-read and has no
cross-record state, so rayon gives a straightforward speedup on wide chunks
when -t is set above 1.

Verified output is deterministic (md5 identical at 1 vs 8 threads on the
test BAM) and cargo test still passes.
@mrvollger mrvollger merged commit 6477bc4 into main Apr 22, 2026
8 checks passed
@mrvollger mrvollger deleted the perf/fire-parallel-feature-extract branch April 22, 2026 21:27
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

Successfully merging this pull request may close these issues.

1 participant