Skip to content

remove residual hokey hash functions #3041

Closed
@nikomatsakis

Description

@nikomatsakis

Our current hashtables just take the hash modulo number of buckets to find the bucket. There is a good case to be made that multiplying by a suitable magic number, such as the golden ratio, will help spread the entropy around, particularly for poor hash functions. We should try this out and measure the results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions