-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reimplement Map.All without using Map.Iter
Implement the native iterate code inside All. All should be the preferred way to iterate over Map when using go1.23. This reimplementation reduces its overhead. goos: darwin goarch: amd64 pkg: github.com/aristanetworks/gomap cpu: Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz │ before.txt │ after.txt │ │ sec/op │ sec/op vs base │ All-16 157.60n ± 2% 56.70n ± 1% -64.02% (p=0.000 n=10) │ before.txt │ after.txt │ │ B/op │ B/op vs base │ All-16 96.00 ± 0% 0.00 ± 0% -100.00% (p=0.000 n=10) │ before.txt │ after.txt │ │ allocs/op │ allocs/op vs base │ All-16 1.000 ± 0% 0.000 ± 0% -100.00% (p=0.000 n=10)
- Loading branch information
Showing
3 changed files
with
289 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters