MirrorNetworking / kcp2k

MIT License
276 stars 47 forks source link

kcp connection shares buffer #63

Closed Molth closed 1 month ago

Molth commented 1 month ago

while kcp2k is single-threaded and the peer's config never changes, there is no need to allocate 3 buffers for every peer. when there are many peers, it will result in high memory usage.

Molth commented 1 month ago

each peer saves 298,634 bytes.