Skip to content

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

@markshannon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance or resource usage
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions