Skip to content

Comments

refactor: optimize vector initialization using size hints#3200

Merged
rakita merged 1 commit intobluealloy:mainfrom
Keemosty12:preallocation1
Dec 2, 2025
Merged

refactor: optimize vector initialization using size hints#3200
rakita merged 1 commit intobluealloy:mainfrom
Keemosty12:preallocation1

Conversation

@Keemosty12
Copy link
Contributor

@Keemosty12 Keemosty12 commented Dec 2, 2025

Pre-allocate memory for vectors using size_hint() in transact_many and arkworks precompiles. This improves performance by avoiding unnecessary reallocations when the iteration count is known.

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 2, 2025

CodSpeed Performance Report

Merging #3200 will not alter performance

Comparing Keemosty12:preallocation1 (d5137ef) with main (77abd37)

Summary

✅ 173 untouched

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rakita rakita merged commit a3f5fd1 into bluealloy:main Dec 2, 2025
31 checks passed
@github-actions github-actions bot mentioned this pull request Dec 2, 2025
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.

2 participants