Change the engine.io socket internal channel so that it can take multiple packets at once. It is backed by smallvec which allows to put packets on the stack for small sizes before moving to the heap. This will avoid slowdowns where there is only one packet sent (most of the time).
Motivation
Solution
Change the engine.io socket internal channel so that it can take multiple packets at once. It is backed by smallvec which allows to put packets on the stack for small sizes before moving to the heap. This will avoid slowdowns where there is only one packet sent (most of the time).