yandex / tartifacts

:package: Create artifacts for your assemblies
MIT License
20 stars 9 forks source link

perf(tar): read files with stream #54

Closed blond closed 8 years ago

blond commented 8 years ago

If no provide stats to archiver then stream will be loaded as buffer (analogue fs.readFile).

This slowed the work with large files.

Before this change:

real    1m23.794s
user    1m26.043s
sys     0m17.291s

After this change:

real    1m7.710s
user    1m8.288s
sys     0m6.331s