Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using `buf = Buffer.concat([buf, data]);` on the data event copies the data in a new larger buffer everytime. Instead, store the intermediate small buffers in an array and concat only at the end.
- Loading branch information