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

feat: add method for retrieving relevant brancher events #138

Merged
merged 5 commits into from
Feb 10, 2025

Conversation

ImkoMarijnissen
Copy link
Contributor

For some instances (e.g. 2023/code-generator/unison.mzn, with 2023/code-generator/mips_gcc.flow.find_regno_partial.dzn), it showed up in profiling that the dynamic brancher went through a lot of branchers upon certain events (in this case the on_unassign_integer event, even though only a single brancher was interested in these events).

To alleviate this issue, this PR adds a method for Branchers, VariableSelectors, and ValueSelectors which allows them to indicate which events they are interested in; this allows the DynamicBrancher to only call the Branchers which are interested in it.

@maartenflippo maartenflippo self-requested a review February 10, 2025 15:45
@github-actions github-actions bot dismissed maartenflippo’s stale review February 10, 2025 15:45

Review re-requested

@maartenflippo maartenflippo force-pushed the feat/relevant-brancher-events branch from 4ff07c2 to 7f7d805 Compare February 10, 2025 15:48
@ImkoMarijnissen ImkoMarijnissen force-pushed the feat/relevant-brancher-events branch from 7f7d805 to 4ff07c2 Compare February 10, 2025 15:50
@maartenflippo maartenflippo merged commit 7f7f0cf into develop Feb 10, 2025
10 checks passed
@maartenflippo maartenflippo deleted the feat/relevant-brancher-events branch February 10, 2025 15:54
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.

2 participants