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

Use strings.NewReader instead of bytes.NewBufferString #1517

Merged
merged 1 commit into from Apr 25, 2022

Commits on Apr 22, 2022

  1. Use strings.NewReader instead of bytes.NewBufferString

    Just a micro-optimization: avoid maintaining state for
    a read/write buffer, and the allocation inherent in a
    string -> []byte conversion.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Apr 22, 2022
    Copy the full SHA
    620ff7c View commit details
    Browse the repository at this point in the history