Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

layerStore.Diff(): don't add an unnecessary buffer #1087

Merged
merged 1 commit into from
Dec 13, 2021

Commits on Dec 13, 2021

  1. 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>
    nalind committed Dec 13, 2021
    Configuration menu
    Copy the full SHA
    e5ea934 View commit details
    Browse the repository at this point in the history