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

Cache ignore-for-spacing property #27248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mike-spa
Copy link
Contributor

This is a follow up to #27247 so that should be merged first. Not intended for 4.5.1.

As I was working on the related PR I realized that during horizontal spacing calculations we're making a lot of calls to ignoreSegmentForSpacing(), which involves checking things on all staves all the time, which makes it quite expensive. With this PR we compute it only once and cache it for all subsequent uses.

@mike-spa mike-spa requested review from oktophonie and miiizen March 20, 2025 10:46
@mike-spa mike-spa changed the title Cache ignore for spacing property Cache ignore-for-spacing property Mar 20, 2025
@mike-spa mike-spa force-pushed the cacheIgnoreForSpacingProperty branch 2 times, most recently from 8e875d5 to b374fa1 Compare March 20, 2025 10:57
@mike-spa mike-spa force-pushed the cacheIgnoreForSpacingProperty branch from b374fa1 to 3a75fb0 Compare March 24, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

None yet

1 participant