Open chebum opened 8 years ago
As long as this repo seems to be abandoned, take a look at this fork: https://github.com/chebum/gaze It contains a fix and use instructions.
If you want to send a PR for it, the patch looks good to me. Thanks!
@shama My fix conflicts with a test mentioned in #214. I believe the test is wrong. Could you please check if I'm correct or not?
Hi,
startup.js test suite on my machine shows that startup time increases non-linearly. For 100 items per folder it's 1.5ms per file, while for 1000 items it's 7ms per file. I found two problems
helper.objectPush
method.helper.unique
method.helper.unique
method isn't necessary when adding a single item into the array. It's enough to call indexOf to check that theval
doesn't exist in the current array.Changes above greatly improves performance on my machine. Actually per file time reduces with growing number of files per directory.
I'll submit a PR in a minute. If the suggestions above make sense, please accept it.
Thanks,