mirror of
https://github.com/fosrl/newt.git
synced 2026-09-17 03:19:06 +02:00
- Add udpBufferPool for reusable 65507-byte UDP packet buffers
- Add getUDPBuffer() and putUDPBuffer() helper functions
- Clear buffer contents before returning to pool to prevent data leakage
- Apply pooling to both main handler buffer and per-client goroutine buffers
- Reduces GC pressure from frequent large allocations during UDP proxying
Made-with: Cursor
Former-commit-id: 4d8d00241d