yandex / tartifacts

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

perf(tar): detect dir by name #53

Closed blond closed 8 years ago

blond commented 8 years ago

If path is direcotry (ends with slash) or path is base dir (see glob-parent) we can not use fs.stat() to detect dir.

Before this change:

real    1m36.596s
user    1m38.054s
sys     0m20.334s

After this change:

real    1m26.146s
user    1m28.172s
sys     0m16.741s