-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace `growBuffer` with 'append' and `resizeBufferCap` with `slices.Grow`. And remove redundant 'if' checks on capacity or size that `append` will do as well. This is equivalent behavior after undoing the unintentional change from commit 1fee39f. Benchmarks show the performance is equivalent to the code before commit 1fee39f. Also replace some deprecated calls to rand funcs.
- Loading branch information
Showing
3 changed files
with
6 additions
and
26 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