Skip to content

perf: reserve capacity in add_transitions#3373

Merged
rakita merged 1 commit intobluealloy:mainfrom
DaniPopes:dani/reserve-add_transitions
Feb 3, 2026
Merged

perf: reserve capacity in add_transitions#3373
rakita merged 1 commit intobluealloy:mainfrom
DaniPopes:dani/reserve-add_transitions

Conversation

@DaniPopes
Copy link
Copy Markdown
Collaborator

@DaniPopes DaniPopes commented Jan 30, 2026

This can overallocate but it should be fine.

Reallocations in this function are 10-20% of the runtime of State::commit.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Jan 30, 2026

Merging this PR will not alter performance

✅ 173 untouched benchmarks


Comparing DaniPopes:dani/reserve-add_transitions (deec2d3) with main (fc750ca)

Open in CodSpeed

@DaniPopes DaniPopes requested a review from rakita January 31, 2026 00:15
@rakita rakita merged commit 8b14c6a into bluealloy:main Feb 3, 2026
31 checks passed
@github-actions github-actions bot mentioned this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants