Closed rubiesonthesky closed 2 years ago
Thanks for reporting. I'll try to reproduce this on my mac today.
I just released batch-cluster v10.1.1 which should resolve this issue.
Thank you for very quick fix! Can confirm that this fixed the issue :)
Describe the bug
I have test setup for reading 13 icc profile files from disk and using exiftool-vendored to read their tags and return
metadata.ICC_Profile.ProfileDescription
. After updating to 15.11.0, my test setup fails because it goes over default mocha time limit (2000ms). When setting really big timeout, this test takes to complete 7783ms. While I think there are a lot thinks to optimize in the actual code, it was finishing close to 2000 ms (eg. 1895ms) with version 15.10.1, this newer version takes a lot more time to do it.I timed the function in the real app (running under ts-node) and the result is same.
I suspect something in the batch-cluster library changed and could be the problem? I did not see anything else really changing between these too versions.
Actually, I did not some testing and overriding batch-cluster to be version 8 produces same result with 15.11.0 than with 15.10.1. -> test does not fail.
To Reproduce
So I have some code like this
And them my mocha test is something like this
Expected behavior
I did not expect the function to be this much slower.
Environment (please complete the following information):