Repository navigation
Parallelize idXML writing with deterministic output - #10430
Merged
timosachsenberg merged 1 commit intoOct 6, 2026
Conversation
Assign peptides to runs once, cache metadata names per worker, and format ordered blocks in parallel. Preserve hit order and propagate the earliest worker failure. Include regression tests and changelog. Depends on the XMLHandler serialization helper in OpenMS#10427. Local native IdXMLFile_test and XMLHandler_test passed. Paired benchmark measurements are documented in the PR description.
timosachsenberg
force-pushed
the
extract/idxml-parallel-writer
branch
from
October 6, 2026 09:13
f69dfb3 to
de4087b
Compare
timosachsenberg
merged commit Oct 6, 2026
8e9b258
into
OpenMS:refactor/xmlhandler-user-param-value
1 check passed
timosachsenberg
added a commit
that referenced
this pull request
Oct 6, 2026
* [INTERNAL] Extract XMLHandler user parameter value writer * [INTERNAL,TEST] Extract parallel idXML writer from #10403 (#10430) Assign peptides to runs once, cache metadata names per worker, and format ordered blocks in parallel. Preserve hit order and propagate the earliest worker failure. Include regression tests and changelog. Depends on the XMLHandler serialization helper in #10427. Local native IdXMLFile_test and XMLHandler_test passed. Paired benchmark measurements are documented in the PR description.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
IdXMLFile::store() currently scans all peptide identifications for each run, copies hits to sort them, and resolves metadata names repeatedly. This extracts the parallel writer from #10403: assign peptides to runs once, cache metadata names per worker, sort hit indices, and write formatted blocks in input order with at most 16 workers. Worker failures are caught and the earliest failing block's exception is rethrown after the parallel region.
Depends on #10427. This PR targets
refactor/xmlhandler-user-param-valueto keep the XMLHandler helper out of the review diff. Retarget to develop after that PR merges. The extraction leaves #10403 unchanged.Validation:
IdXMLFile_testandXMLHandler_testboth passed.git diff --checkand Python harness syntax checks passed.Benchmarks against develop
fe7b9cc0e5: 30,000 peptide identifications produced by repeating each repository fixture 10,000 times; 5 measured repetitions per arm/configuration after a warmup; alternating arm order. AMD EPYC 9V74, 9 visible CPUs, an 8-CPU cgroup quota, overlay filesystem. All output hashes match across arms, repetitions and thread counts.At 4 threads, process peak RSS remained approximately 133 MiB for ProSE and 70 MiB for the two-run fixture. RSS includes input loading and scaling. Timing measures store(), including stream close/flush but excluding fsync.
These are synthetic fixture repetitions, not a diverse real-data benchmark. Sixteen threads oversubscribe the CPU quota and are slower than four on the two-run fixture. Tiny files show no reliable gain; the one-thread unscaled ProSE case took 0.557 ms versus 0.452 ms. Benchmark code and raw result files are kept outside the PR; only the production change, regression tests and changelog are committed.