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

Simplify accumulator updates #5872

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

Conversation

gab8192
Copy link
Contributor

@gab8192 gab8192 commented Feb 8, 2025

A very deep bench (bench 64 1 22) reveals that, if (oldest->*accPtr).computed[Perspective] is true, then oldest != pos.state() is always true.
This can be demonstrated too: we verify right above that the current accumulator is not computed. If oldest is computed instead, it can't be the same as current accumulator

Non functional change

@ces42
Copy link
Contributor

ces42 commented Feb 9, 2025

this simplification would be obsolete if #5870 gets merged.

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