mirror of https://github.com/lukechilds/node.git
Browse Source
When a stream is flowing, and not in the middle of a sync read, and the read buffer currently has a length of 0, we can just emit a 'data' event rather than push it onto the array, emit 'readable', and then automatically call read(). As it happens, this is quite a frequent occurrence! Making this change brings the HTTP benchmarks back into a good place after the removal of the .ondata/.onend socket kludge methods.v0.11.6-release
1 changed files with 16 additions and 9 deletions
Loading…
Reference in new issue