yandex / tartifacts

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

[WIP] perf(tar): not use `fs.stat()` #50

Closed blond closed 8 years ago

blond commented 8 years ago

The call fs.stat() reduces performance somewhat, and is completely unnecessary, unless readdir is presumed to be an untrustworthy indicator of file existence.

We can handle the error when attempting to read a directory as a file.

Important: this broken change. The mode and date won't be saved for files.

Need to implement in separate task #49.