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

The "mask" stored in the cache of COMPARE_OP could be stored in the oparg. #100923

Closed
markshannon opened this issue Jan 10, 2023 · 0 comments
Closed
Labels
performance Performance or resource usage

Comments

@markshannon
Copy link
Member

markshannon commented Jan 10, 2023

The "when to branch mask" used by specializations of COMPARE_OP takes 4 bits, the comparison operator take 3 bits.
Since the mask can be computed at compile time, it should be stored in the oparg along with the comparison operator.
This would free up a cache entry.

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage
Projects
None yet
Development

No branches or pull requests

1 participant