Commit e23f3376 authored by Michaël Zasso's avatar Michaël Zasso
Browse files

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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment