Skip to content

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

Open
LaurenceJJones wants to merge 1 commit intodevfrom
proxy-perf-improvements
Open

perf(proxy): Add HTTP client reuse and buffer pooling#63
LaurenceJJones wants to merge 1 commit 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
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