Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: indexmap-rs/indexmap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.12.0
Choose a base ref
...
head repository: indexmap-rs/indexmap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.12.1
Choose a head ref
  • 3 commits
  • 7 files changed
  • 1 contributor

Commits on Nov 20, 2025

  1. Use the bucket API from hashbrown v0.16.1

    This lets us simplify `OccupiedEntry` to just a reference and a bucket
    index, rather than needing a separate reference to our `Vec` while the
    inner entry holds a reference to the `HashTable`. This in turn lets us
    get rid of the `RefMut` abstraction that was providing common methods
    for that pair of references.
    
    The `OccupiedEntry` currently holds the index for the vector as well,
    but this is more of an optimization since most entry methods need it, so
    we don't have to indirectly read it through the bucket each time. Thus
    the overall size hasn't changed, but we could drop that if we decided
    the size was more important.
    
    The sizes of `VacantEntry` and `IndexedEntry` *are* reduced though,
    because they're also now holding a single map reference rather than the
    double `RefMut`, which was only needed before due the structure of the
    `OccupiedEntry`. The overall `Entry` should also be smaller as a result.
    cuviper committed Nov 20, 2025
    Configuration menu
    Copy the full SHA
    6245ee5 View commit details
    Browse the repository at this point in the history
  2. Release 2.12.1

    cuviper committed Nov 20, 2025
    Configuration menu
    Copy the full SHA
    a96b9c7 View commit details
    Browse the repository at this point in the history
  3. Merge pull request #424 from cuviper/buckets

    Use the bucket API from hashbrown v0.16.1
    cuviper authored Nov 20, 2025
    Configuration menu
    Copy the full SHA
    cfad758 View commit details
    Browse the repository at this point in the history
Loading