Skip to content

Optimizer: skip loop when all rules are optimized#2455

Open
dsblank wants to merge 2 commits into
gramps-project:masterfrom
dsblank:dsb/optimize-optimizer-v2
Open

Optimizer: skip loop when all rules are optimized#2455
dsblank wants to merge 2 commits into
gramps-project:masterfrom
dsblank:dsb/optimize-optimizer-v2

Conversation

@dsblank

@dsblank dsblank commented Jul 3, 2026

Copy link
Copy Markdown
Member

Recreated version of #2160 (closed due to loss of write access on the
original upstream branch), rebased onto current master to resolve merge
conflicts.

Before:

We needed to loop over all optimized handles, in case there was a
non-optimized rule (a rule that didn't have selected_handles)

After:

We now detect if there are non-optimized rules, and only loop in that
case. Otherwise we can return the optimized handles directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant