Minor Fix and Improvements
-
Improvements
- Uses a
sync.Pool
to preserve the connection buffers on close to remove pressure from the allocator and the GC during connection churns.
- Uses a
-
Fixes
- Cleanup the data structure cross refs on Cluster.Close to help GC free the objects.