-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Closed
Copy link
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolPerformanceProposal
Milestone
Description
Proposal Details
The net/http/server.go implementation uses an internal, unexported buffer pool with a fixed size (copyBufPoolSize = 32 * 1024). This value is hard-coded and cannot be adjusted or replaced by users.
For some workloads, especially high-throughput reverse proxies or systems working with large payloads, the default buffer size may be suboptimal. It would be beneficial to allow customizing this behavior. The bigger buffer size allows reducing the amount number of system calls and improve performance.
I think some kind of ReverseProxy Buffer Pool may be used here.
Linked issues
Metadata
Metadata
Assignees
Labels
LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolPerformanceProposal