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

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.

1 participant