elephant.io
elephant.io copied to clipboard
Avoid reading payload twice
When reading from the socket, there is a first reading to extract the full payload from the stream, and then there is a second reading to actually interpret the extracted payload in the Decoder.
I think that factorizing these actions could be a pretty good enhancement ; a solution would be to include the stream reading directly into the decoder, but I'm not a huge fan, as the decoder should only decode the full payload (and that's it), without any coupling.
better english inside™ #troll @Taluu
<3