Skip to content

perf(proxy): Add HTTP client reuse and buffer pooling#63

Merged
marcschaeferger merged 3 commits intodevfrom
proxy-perf-improvements
Apr 3, 2026
Merged

perf(proxy): Add HTTP client reuse and buffer pooling#63
marcschaeferger merged 3 commits intodevfrom
proxy-perf-improvements

Conversation

@LaurenceJJones
Copy link
Copy Markdown
Member

@LaurenceJJones LaurenceJJones commented Mar 13, 2026

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

  • Add reusable HTTP client with connection pooling for requests
  • Add sync.Pool for 32KB buffers used in connection piping
  • Clear buffers before returning to pool to prevent data leakage
  • Reduces GC pressure and improves throughput under load

How to test?

Internal proxy usage

- Add reusable HTTP client with connection pooling for API requests
- Add sync.Pool for 32KB buffers used in connection piping
- Clear buffers before returning to pool to prevent data leakage
- Reduces GC pressure and improves throughput under load
@LaurenceJJones LaurenceJJones changed the title enhance(proxy): Add HTTP client reuse and buffer pooling perf(proxy): Add HTTP client reuse and buffer pooling Mar 13, 2026
@marcschaeferger marcschaeferger merged commit 6c91e99 into dev Apr 3, 2026
1 check passed
@marcschaeferger marcschaeferger deleted the proxy-perf-improvements branch April 3, 2026 23:48
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.

2 participants