Skip to content

triedb/pathdb: prealloc node map in nodeSet.write#35232

Open
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:triedb-pathdb-prealloc-node-map-write
Open

triedb/pathdb: prealloc node map in nodeSet.write#35232
cuiweixie wants to merge 1 commit into
ethereum:masterfrom
cuiweixie:triedb-pathdb-prealloc-node-map-write

Conversation

@cuiweixie

Copy link
Copy Markdown
Contributor

Summary

  • Preallocate the outer nodes map in nodeSet.write with capacity len(s.storageNodes)+1 to avoid repeated map growth

Test plan

  • gofmt / goimports on modified files
  • go run ./build/ci.go test -short (triedb/pathdb)

@cuiweixie cuiweixie requested a review from rjl493456442 as a code owner June 26, 2026 16:44
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