mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-05 21:47:31 +00:00
Improve: pool buffer alloc
This commit is contained in:
@@ -33,6 +33,6 @@ func (c *packet) LocalAddr() net.Addr {
|
||||
}
|
||||
|
||||
func (c *packet) Drop() {
|
||||
pool.BufPool.Put(c.bufRef[:cap(c.bufRef)])
|
||||
pool.Put(c.bufRef)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user