-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
layerStore.Diff(): don't use an unnecessary buffer
Don't ReadAll() from a Reader to create a buffer and then create another Reader to read from that buffer. Don't close a file and a decompressor that we're using to read the file's contents when we we may still need to read from them after the current function returns. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
- Loading branch information
Showing
2 changed files
with
69 additions
and
32 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