-
Notifications
You must be signed in to change notification settings - Fork 460
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
perf: linearity in HashMap.(insert|erase) #4372
Conversation
!bench |
Here are the benchmark results for commit f626d65. |
Mathlib CI status (docs):
|
!bench |
Here are the benchmark results for commit 37e2bdb. Benchmark Metric Change
================================================
- stdlib tactic execution 1.2% (1102.8 σ) |
@TwoFX Great catch. Have you considered using |
@leodemoura I have, but I think it makes the code less clear in this case (because we already have |
Great. No need to change. Just wanted to know if you considered. I trust your judgment. |
The speedcenter doesn't seem to care much, but in my benchmark for replace-heavy workloads, the fixed code is about 40% faster.