Skip to content

Improve long_hash #136599

Open
Open
@eendebakpt

Description

@eendebakpt

Feature or enhancement

Proposal:

  • There is a corner case in the C code that not tested in long_hash, the final check
    if (x == (Py_uhash_t)-1)
        x = (Py_uhash_t)-2;
  • We can improve performance of long_hash by unrolling the first two digits

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)performancePerformance or resource usagetype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions