Skip to content
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

datastore: speedup lookup by EntityName #2776

Merged
merged 1 commit into from
Mar 18, 2025
Merged

Conversation

battlmonstr
Copy link
Contributor

@battlmonstr battlmonstr commented Mar 6, 2025

Optimize entity lookup by EntityName taking 1-2% of time using a raw pointer comparison and hash strategy for EntityName, and using a absl::flat_hash_map instead of std::map.

Screenshot_2025-03-06_at_12 08 21

@battlmonstr battlmonstr requested a review from canepat March 6, 2025 13:36
@battlmonstr battlmonstr enabled auto-merge (squash) March 6, 2025 15:06
@battlmonstr battlmonstr merged commit f573c81 into master Mar 18, 2025
5 checks passed
@battlmonstr battlmonstr deleted the pr/ent_name_cmp branch March 18, 2025 15:23
@canepat canepat added the performance Performance issue or improvement label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance issue or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants