Skip to content

Bound Multi-Fold repeat enumeration without changing candidate order - #82

Merged
laurenceyoon merged 1 commit into
developfrom
feature/bounded-repeat-unfolding
Nov 13, 2026
Merged

laurenceyoon merged 1 commit into
developfrom
feature/bounded-repeat-unfolding

Conversation

@laurenceyoon

Copy link
Copy Markdown
Collaborator
  • Problem: Multi-Fold Arzt keeps only the first 4 intermediate unfoldings of a folded score, but pt.score.iter_unfolded_parts() builds every repeat path first (about 2^n for n repeats), so scores with many repeats can hang or run out of memory just to take 4.
  • Generate the unfolding paths lazily, in Partitura's order, and stop after the first 4.
  • Same candidates in the same order, so results are unchanged on scores that already finished; only the wasted enumeration is gone.
  • Needed by the benchmark's repeat and folded-score diagnostics.

@laurenceyoon
laurenceyoon merged commit 02bfe75 into develop Nov 13, 2026
12 checks passed
@laurenceyoon laurenceyoon mentioned this pull request Nov 15, 2026
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