project-iris / iris

Decentralized cloud messaging
iris.karalabe.com
Other
571 stars 32 forks source link

Group bursting messages on peer sessions #13

Open karalabe opened 10 years ago

karalabe commented 10 years ago

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.