Closed goto-bus-stop closed 6 years ago
In #14, something like the below happens:
.pipe
output
push
By doing output.write instead, we always go through output's buffer when necessary, i.e. take the same path as .pipe().
output.write
.pipe()
Not quite sure how to test this just yet…!
In #14, something like the below happens:
.pipe
d tooutput
output
has to buffer at some point if it cannot drain fast enoughoutput
's bufferpush
things to output, butpush
bypasses its bufferoutput
pushes things from its buffer, out of orderBy doing
output.write
instead, we always go throughoutput
's buffer when necessary, i.e. take the same path as.pipe()
.Not quite sure how to test this just yet…!