On Apr 19, 12:43 pm, Joran Greef <jo...@ronomon.com> wrote:
> Is it safe to use ondata to avoid the buffer.slice overhead introduced when
> otherwise calling on('data') callbacks?

How much overhead are you seeing with buffer.slice()? It references
the same chunk of memory as the original and does not do any copying.

Reply via email to