Skip to content

Update descriptions of AHashMap and HashMap. Recommend AHashMap over HashMap by default. #11123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ivorforce
Copy link
Member

**Note: ** Will need to go through a core meeting before this can be merged.

AHashMap is way faster than HashMap in nearly all circumstances. HashMap on the other hand has some 'defensive' affordances built in. However, these affordances are not expected for C++ map types: No std map type grants these, probably because they are what makes HashMap so slow. In addition, most users of map types do not need these affordances.
In the interest of performance, this changes the recommended map type to AHashMap.

@Ivorforce Ivorforce requested a review from Calinou July 19, 2025 16:31
@Ivorforce Ivorforce added enhancement area:contributing Issues and PRs related to the Contributing/Development section of the documentation labels Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:contributing Issues and PRs related to the Contributing/Development section of the documentation enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant