Repository navigation
stdwriter: improve perf by avoiding buffer growth - #8084
Merged
Merged
Conversation
Contributor
|
I've wrote simple benchmark for Maybe this is time to move |
Contributor
Author
|
@LK4D4 I'll move it to a package in this PR. |
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <[email protected]> (github: unclejack)
Docker-DCO-1.1-Signed-off-by: Cristian Staretu <[email protected]> (github: unclejack)
unclejack
force-pushed
the
improve_stdcopy
branch
from
September 17, 2014 15:16
a957169 to
277aa9c
Compare
Contributor
Author
|
@LK4D4 I've moved stdcopy to pkg/stdcopy. Please feel free to send a PR to this branch on my Docker fork to add the benchmark you've written. |
Signed-off-by: Alexandr Morozov <[email protected]>
Contributor
Benchmark for StdWriter.Write
Contributor
Author
|
@LK4D4 Thanks! I've merged the PR. This PR is ready for review now. |
Contributor
|
LGTM I like the cleanup |
Contributor
|
LGTM |
tiborvass
added a commit
that referenced
this pull request
Sep 17, 2014
stdwriter: improve perf by avoiding buffer growth
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR modifies stdwriter to avoid growing the buffer. A lot of memory was being allocated by this line of code: