mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-06-13 15:47:38 +08:00
perf: reuse reverse proxy candidate slices
This commit is contained in:
parent
71a344a3de
commit
017bb13295
3 changed files with 86 additions and 8 deletions
|
|
@ -91,6 +91,13 @@ var reverseProxyCopyBufferPool = sync.Pool{
|
|||
},
|
||||
}
|
||||
|
||||
var reverseProxyCandidatePool = sync.Pool{
|
||||
New: func() any {
|
||||
s := make([]*reverseProxyUpstream, 0, 8)
|
||||
return &s
|
||||
},
|
||||
}
|
||||
|
||||
type reverseProxyStatusError struct {
|
||||
status int
|
||||
err error
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue