Repository navigation
Sort PeptideIndexing matches once after the parallel database search - #10429
timosachsenberg merged 2 commits into
Conversation
Extract the PeptideIndexing optimization from OpenMS#10403. Keep thread-local merges protected, then sort the complete match vector once after the parallel region instead of sorting after each merge.
|
looks correct to me |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthrough
ChangesPeptideIndexing match sorting
Suggested reviewers: Priority: ⬇️ Low Change: Refactor Merge Risk: ⚪ Minimal · up to Peptide matching retains the ordering used by downstream mapping; no change-specific merge risk is evident. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit watched the matches merge Comment |
|
@copilot resolve the merge conflicts in this pull request |
1 similar comment
|
@copilot resolve the merge conflicts in this pull request |
Brings in #10448, #10453, #10449 (ProSE -rescore), #10429, #10463, #10455 and #10452. #10429 is the same PeptideIndexing change this branch carried from #10403, so the files merged identically; its duplicate CHANGELOG entry is dropped. The CHANGELOG conflict keeps both sides. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01UQCiwdbPoEkrebED8VQ2TJ
PeptideIndexing currently sorts the entire accumulated peptide–protein match vector inside the critical section after every thread/chunk merge. This repeatedly sorts earlier matches and keeps other threads waiting.
Move the sort after the parallel region so the complete vector is sorted once. Merging only appends matches, and downstream consumers still receive the same order by peptide index, protein index, position and flanking residues. Includes a changelog entry.
Extracted unchanged from #10403; this PR contains only the PeptideIndexing optimization and does not include ProSE's index-based protein mapping.
Validation:
A full OpenMS build was not run.
Summary by CodeRabbit
Benchmark
Paired Release builds (GCC 13.3, C++23, -O3, OpenMP), original develop fe7b9cc vs this change. Unchanged dependencies link against the same nightly libOpenMS. AMD EPYC 9V74 VM, 9 visible CPUs / 8 CPU quota; OMP_WAIT_POLICY=PASSIVE. One excluded warm-up pair and three measured pairs per configuration, alternating before/after order. Times are median wall time of the complete PeptideIndexing::run call, excluding input loading/digestion/PSM generation and output comparison.
Inputs:
All 64 runs produced identical serialized peptide evidences (accession, start/end, flanking residues), target/decoy and unique/shared annotations, and protein-hit lists within each dataset, across both versions and all thread counts. Peak process RSS is effectively unchanged (about 143–149 MiB for E. coli, 429–461 MiB for the stress case).
The clearest gain is the synthetic chunked case at 8 threads: 22.4% less indexing time (1.453 -> 1.128 s). Most other ranges overlap: these short, shared-VM runs do not establish a general speedup or a single-thread regression. The E. coli inputs use generated PSMs, not observed search results; the large case is synthetic. No full search-engine benchmark was performed. Benchmark code remains temporary and local; no benchmark files or commits were added to this PR.