Currently all messages pass through the peer session links individually. It would probably be worth to cache small messages and send them out as one "message group" to significantly reduce the processing (especially encryption) overhead.
Note, only already buffered messages should be grouped and no wait whatsoever is allowed to ensure packet latency doesn't jump (I'm looking at you, Erlang). The max size limit I'd say could be around 1KB, but this obviously needs benchmarking.
Currently all messages pass through the peer session links individually. It would probably be worth to cache small messages and send them out as one "message group" to significantly reduce the processing (especially encryption) overhead.
Note, only already buffered messages should be grouped and no wait whatsoever is allowed to ensure packet latency doesn't jump (I'm looking at you, Erlang). The max size limit I'd say could be around 1KB, but this obviously needs benchmarking.