Skip to content

Conversation

@MonkeyMarcel
Copy link
Contributor

Follow-up to #32965.

The previous PR avoided rebuilding hash maps multiple times, but we can optimize further:

  • Use struct{} instead of bool as map value (saves 1 byte per entry)
  • Pre-allocate map capacity to avoid rehashing during construction

@rjl493456442 rjl493456442 added this to the 1.16.8 milestone Nov 13, 2025
@rjl493456442 rjl493456442 merged commit 48d708a into ethereum:master Nov 13, 2025
6 of 8 checks passed
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