Skip to content

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

Description

@markshannon

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions