Comparing v4.9.0...v4.9.1 · martinus/unordered_dense · GitHub
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: martinus/unordered_dense
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.9.0
Choose a base ref
...
head repository: martinus/unordered_dense
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.9.1
Choose a head ref
  • 4 commits
  • 6 files changed
  • 3 contributors

Commits on Aug 10, 2026

  1. Fix potential quadratic complexity caused by reserve(size + 1)

    Daniel Kral authored and martinus committed Aug 10, 2026
    Configuration menu
    Copy the full SHA
    a8be0eb View commit details
    Browse the repository at this point in the history
  2. Improve comment

    Daniel Kral authored and martinus committed Aug 10, 2026
    Configuration menu
    Copy the full SHA
    9cbc859 View commit details
    Browse the repository at this point in the history
  3. Pin the block index's geometric growth

    PR #188 fixed segmented_vector growing its block pointer array with
    reserve(size + 1), which reallocated it for every new segment and made
    a chain of inserts quadratic in the number of segments. Count the
    allocations for a 256-segment fill: geometric growth needs one
    allocation per segment plus a logarithmic handful for the index, while
    the quadratic version lands near three per segment.
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    martinus and claude committed Aug 10, 2026
    Configuration menu
    Copy the full SHA
    f743daa View commit details
    Browse the repository at this point in the history
  4. bump version to 4.9.1

    Patch bump: fixes the quadratic insert cost that v4.9.0's
    exception-safety work introduced in segmented_vector's block index
    growth.
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
    martinus and claude committed Aug 10, 2026
    Configuration menu
    Copy the full SHA
    c4d143b View commit details
    Browse the repository at this point in the history
Loading