Closed Farenheith closed 2 years ago
Thank you for this! Sorry, I have been distant on your raised issue #23. I will review it soon! Cheers @Farenheith 🍻
@danstarns no problems, mate! I was planning to work on it, I just opened the issue to don't forget about it!
Nice! Thank you, and happy new year!
Nice! Thank you, and happy new year!
Happy new year to you too.
Solves #23
Some performance improvements were implemented in this PR.
I also added a new test suite to validate performance, using a large file as the source of event emitting. This suite doesn't pass on the previous version, but I don't know how long it would take to finish because it timed out in 100 seconds. I think it would take 5 to 10 minutes to finish. Using this branch locally the test finished in 386 ms with noSleep = false and 349ms with noSleep = true.
Running a separated benchmark without all the mocha overload I got the following results, but over a file with only 9074 lines: