Open
Description
If we perform a long read (we read packet N, and part of packet N+1), when we read packet N+1, we always memmove what we got before engaging into further reading. This has a noticeable cost if we read a considerable amount of data for packet N+1. We could probably save such memmoves under certain circumstances (not always, since we might run out of buffer space otherwise). This requires more investigation and some trial-and-error.