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 buffer pool for proxy copying data #573

Merged
merged 1 commit into from
Sep 1, 2024
Merged

Conversation

phillebaba
Copy link
Member

This change makes the HTTP proxy use a buffer pool when copying data between a response and request. It does not change the buffer size which still is what it was before. Future work could be done to test if changing the buffer size would improve performance.

Relates to #546

Copy link

codecov bot commented Sep 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
internal/buffer/buffer.go 100.00% <100.00%> (ø)
pkg/registry/registry.go 46.18% <100.00%> (+0.48%) ⬆️

@phillebaba phillebaba force-pushed the feature/buffer-pool branch 2 times, most recently from da1e168 to 2c0b6d0 Compare September 1, 2024 15:17
@phillebaba phillebaba merged commit 9126f7f into main Sep 1, 2024
9 checks passed
@phillebaba phillebaba deleted the feature/buffer-pool branch September 1, 2024 15:23
t1mt pushed a commit to t1mt/spegel that referenced this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant