mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
* Fix comment documenting WorldSocket The buffer is constructed with 4096 bytes but later resized in WorldSocketThread::SocketAdded() according to the configuration setting Network.OutUBuff (currently 65536 bytes) * Reuse calculated packet size Instead of recalculating the current packet size three times at worst, calculate it once and reuse it when required. * Reduce reserved buffer size per WorldSocket Don't reserve 64kB of memory for every WorldSocket's output buffer. Instead, start with a 4kB baseline for every WorldSocket and grow the buffer size dynamically when we have single packets that do not fit the current buffer.