Skip to content

Track optimized sage-core (fork master): sparse Mods + slim Peptide compat#62

Merged
theGreatHerrLebert merged 2 commits into
mainfrom
perf/sparse-mods-compat
May 28, 2026
Merged

Track optimized sage-core (fork master): sparse Mods + slim Peptide compat#62
theGreatHerrLebert merged 2 commits into
mainfrom
perf/sparse-mods-compat

Conversation

@theGreatHerrLebert

Copy link
Copy Markdown
Owner

Summary

  • Adapts the connector to the sage-core build-memory optimization (sparse Mods with to_dense/from_dense; slimmed Peptide with Box<[..]> mods/proteins) — py_peptide, py_ion_series, py_database, py_scoring.
  • Repoints the sage-core git dependency (connector + qfdrust) to the fork's master, where that optimization landed (872b533: sparse mods + struct-slim + chunked materialisation + a Bruker .d file://→local-path reader fix). Was pinned to the now-merged perf/lazy-peptide-modifications branch.

The old lock was stale at the A+D commit (2d1ab6a); this brings the connector current with the full landed work.

Test plan

  • cargo check — qfdrust + connector compile against sage-core master
  • maturin develop builds the connector against sage-core master 872b5339
  • pytest sagepy/tests103 passed (incl. test_peptide, test_ion_series, test_sage_compat, test_enzyme, test_fdr)

sage-core PR perf/lazy-peptide-modifications changes Peptide.modifications
Vec<f32>->Mods (sparse) and proteins Vec->SmallVec. Adapt the 5 connector
sites: construct via Mods::from_dense, expose via to_dense (Python API
returns dense Vec<f32> unchanged), read residue mass via mass_at, filter
via is_empty. proteins .iter()/.collect() work unchanged on SmallVec.

NOTE: Cargo.toml sage-core deps temporarily pin branch=perf/lazy-peptide-
modifications for compile verification; revert to master tracking once the
sage PR merges.
The Sage build-memory work (sparse Mods + struct-slim + chunked E1 + the
Bruker .d-reader fix) merged to the fork's master (872b533), so pin
sage-core to master instead of the now-merged perf/lazy-peptide-modifications
branch. qfdrust + connector compile clean against it (cargo check).
@theGreatHerrLebert theGreatHerrLebert merged commit dc03b14 into main May 28, 2026
3 checks passed
@theGreatHerrLebert theGreatHerrLebert deleted the perf/sparse-mods-compat branch May 28, 2026 16:06
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