Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

format: packfile, avoid allocating in teeReader.ReadByte #800

Closed
wants to merge 1 commit into from
Closed

format: packfile, avoid allocating in teeReader.ReadByte #800

wants to merge 1 commit into from

Conversation

nussjustin
Copy link

ReadByte allocates a byte slice on each call which showed up in memory profiles for the code in #793. Avoiding the allocation saves 3 seconds on my machine.

Updates #793

@nussjustin nussjustin closed this Apr 4, 2018
@nussjustin
Copy link
Author

Seems like the problem was already fixed on tip, ops

@nussjustin nussjustin deleted the optimize-tee-reader branch April 4, 2018 16:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant