Open jrudolph opened 4 years ago
There are two things at play here (affecting both client and server parsing side):
splitAfter
, prefixAndTail
, concatSubstreams
and various custom stages). Especially concatSubstreams
is expensive. A single custom stage to encompass all of these smaller ones would help a lot, especially in the case where we always receive strict data frames (after doing the optimization in the first bullet).
In https://discuss.lightbend.com/t/low-websocket-client-performance/6907 it was reported that there might be more
Streamed
messages than expected which will lead to bad performance because of all the stream handling collecting full messages.