You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the current Writable implementation, the writev scenario will always create two "unnecessary" array copies in order to pass the chunks. Furthermore all the array entries are allocated objects.
Activity
[-]stream: suggestion writev2[/-][+]stream: suggestion stream._writeMany[/+]mscdex commentedon Aug 7, 2019
allBuffersis an implementation detail and not something that should be requested from the end user and relied upon.ronag commentedon Aug 7, 2019
True, but by exposing it we enable some optimizations that are otherwise not possible.
mscdex commentedon Aug 7, 2019
We would still need to validate that the value for
allBuffersis correct, which would negate any gain.ronag commentedon Aug 7, 2019
I'm not sure I follow?