-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preallocate the changes returned by getPlannedRateChanges
Also this has small performance gains mostly in memory usage :): benchmark old ns/op new ns/op delta BenchmarkGetPlannedRateChanges-4 2492187 2074295 -16.77% BenchmarkGetPlannedRateChanges-4 2397757 2664355 +11.12% BenchmarkGetPlannedRateChanges-4 2710011 2520663 -6.99% BenchmarkGetPlannedRateChanges-4 2192676 2252197 +2.71% BenchmarkGetPlannedRateChanges-4 2277776 2258828 -0.83% benchmark old allocs new allocs delta BenchmarkGetPlannedRateChanges-4 56205 56193 -0.02% BenchmarkGetPlannedRateChanges-4 56205 56193 -0.02% BenchmarkGetPlannedRateChanges-4 56205 56193 -0.02% BenchmarkGetPlannedRateChanges-4 56205 56193 -0.02% BenchmarkGetPlannedRateChanges-4 56205 56193 -0.02% benchmark old bytes new bytes delta BenchmarkGetPlannedRateChanges-4 1254588 1066197 -15.02% BenchmarkGetPlannedRateChanges-4 1254588 1066200 -15.02% BenchmarkGetPlannedRateChanges-4 1254585 1066198 -15.02% BenchmarkGetPlannedRateChanges-4 1254588 1066201 -15.02% BenchmarkGetPlannedRateChanges-4 1254584 1066199 -15.02%
- Loading branch information
Showing
2 changed files
with
104 additions
and
23 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