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

Make empty Dict only have space for 0 rather than 16 elements (and the minimum size for non-empty Dict down to 4). #52912

Merged

Commits on Jan 21, 2024

  1. Make empty Dict only have space for 0 rather than 16 elements.

    This improves speed for small Dicts.
    (the 16 before made sense when Dict was Vector backed since Vectors were slow to instantiate,
    but size Memory are much faster and have an extra fast path for size 0)
    oscardssmith committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    bdfdbb9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e1c686 View commit details
    Browse the repository at this point in the history