Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Use buffered IO when reading the data section #87

Merged
merged 1 commit into from
Jul 11, 2023

Conversation

jonjohnsonjr
Copy link
Contributor

This will save us some Read()s.

This will save us some Read()s.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr
Copy link
Contributor Author

Before:

image

After:

image

This makes the gunzipping reads do ~30% less work. (This mostly doesn't show up in latency because we are already overlapping this stuff, but it uses less CPU.)

@imjasonh imjasonh merged commit 584bc52 into chainguard-dev:main Jul 11, 2023
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.

2 participants