SIGN IN SIGN UP
fatedier / frp UNCLAIMED

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.

0 0 71 Go

pkg/metrics/mem: remove redundant map write-backs and optimize proxy lookup (#5221)

Remove 4 redundant pointer map write-backs in OpenConnection,
CloseConnection, AddTrafficIn, and AddTrafficOut since the map stores
pointers and mutations are already visible without reassignment.

Optimize GetProxiesByTypeAndName from O(n) full map scan to O(1) direct
map lookup by proxy name.
F
fatedier committed
eeb0dacfc1908a21ecdf629812cbc2244630fab6
Parent: 535eb3d
Committed by GitHub <noreply@github.com> on 3/8/2026, 2:40:39 AM