Skip to content

stream: avoid possible slow paths w UInt8Array

A chunk validity checks verifie if a chunk is a UInt8Array. We should defer it as it might be very expensive in older Node.js platforms.

It avoid the UInt8Array checks if the streams are in objectMode: true.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

stream

Merge request reports

Loading