improve performance for large files
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.
parent
ac309eef
Please register or sign in to comment