-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exact slice allocation for repeated packed varints (#480)
* Adds a test to verify Unmarshal's memory usage for Varint Validates #436 * Allocates the exact memory needed for packed repeated varints Resolves #436 * Add benchmarks for Issue436. We'll test the change against a range of array sizes as well as different varint range. The before/after tests were made using the same code against fork/master branches. * Run 'make' with Go 1.11 and protobuf 3.5.1 It seems that combination is somehow special to the CI tooling.
- Loading branch information
1 parent
4aa4cc2
commit 7c690ae
Showing
12 changed files
with
1,833 additions
and
213 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.