Skip to content

core/rawdb: preallocate slice in iterateTransactions#2632

Merged
ucwong merged 1 commit intomasterfrom
dev
Feb 4, 2026
Merged

core/rawdb: preallocate slice in iterateTransactions#2632
ucwong merged 1 commit intomasterfrom
dev

Conversation

@ucwong
Copy link
Member

@ucwong ucwong commented Feb 4, 2026

Preallocate hashes slice with known length instead of using append in a loop. This avoids multiple reallocations during transaction indexing.

Preallocate hashes slice with known length instead of using append in a
loop. This avoids multiple reallocations during transaction indexing.
@ucwong ucwong marked this pull request as ready for review February 4, 2026 09:18
@ucwong ucwong merged commit 973e270 into master Feb 4, 2026
1 check failed
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