elephant.io icon indicating copy to clipboard operation
elephant.io copied to clipboard

Avoid reading payload twice

Open Taluu opened this issue 11 years ago • 2 comments

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.

Taluu avatar Aug 13 '14 21:08 Taluu

better english inside™ #troll @Taluu

guillaumepotier avatar Aug 30 '14 09:08 guillaumepotier

<3

Taluu avatar Aug 30 '14 11:08 Taluu