You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
15.11.0 : 7837 ms
15.10.1 : 1918 ms
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.
Thanks for reporting. I'll try to reproduce this on my mac today.
mceachen
transferred this issue from photostructure/exiftool-vendored.js
Feb 23, 2022
mceachen
changed the title
v15.11.0 seems to be reading tags from ICC profile files much slower
exiftool-vendored v15.11.0 seems to be reading tags from ICC profile files much slower
Feb 23, 2022
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):
The text was updated successfully, but these errors were encountered: