Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up quantize() #1594

Merged
merged 1 commit into from
Jun 5, 2023
Merged

Speed up quantize() #1594

merged 1 commit into from
Jun 5, 2023

Conversation

TimFelixBeyer
Copy link
Contributor

@TimFelixBeyer TimFelixBeyer commented Jun 5, 2023

During quantization, rests that end up with duration 0 are deleted.
Previously, the list of rests to be deleted was not reset after finishing with a substream, yielding extremely slow performance on big scores as the code attempted to delete all previously found (and already deleted) rests again in each following substream.

While iterating over all streams, rests of duration 0 are deleted. Previously, the list of rests to be deleted was not reset after finishing with a substream, yielding extremely slow performance on big scores as the code attempted to delete all previously found (and already deleted) rests again in each following substream.
@coveralls
Copy link

Coverage Status

coverage: 92.987%. remained the same when pulling cfdc95b on TimFelixBeyer:patch-8 into 58f5495 on cuthbertLab:master.

@mscuthbert mscuthbert merged commit fcc1bd5 into cuthbertLab:master Jun 5, 2023
@mscuthbert
Copy link
Member

Thanks Tim!

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.

3 participants