How to read multiple files properly? #174
-
Hi! First of all, thank you very much for this incredible project! I want to read multiple files at once, but the only way I can think of to do it is calling the
However, this way the time to read each file is about 0.3 seconds! A very bad result considering that I want to read more than a thousand photos. Is there a better way to do this by prioritizing performance? Any way to extract only the needed data? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Other projects are also avoiding using exiftool due to ignorance or lack of documentation on the matter, the benchmarks are horrible compared to other libraries. Please see the benchmark created by the mantainer of pigallery2 here. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the heads-up! I added some guidance to that thread you linked to, but here are a couple things to keep in mind:
FWIW, I just ran the |
Beta Was this translation helpful? Give feedback.
Thanks for the heads-up!
I added some guidance to that thread you linked to, but here are a couple things to keep in mind:
new ExifTool({maxProcs: os.cpus().length})
.maxProcs: 16
, that should be fine on an SSD, but HDDs hate concurrency (especially high levels of concurrency), as the read-head may be physically butterflying across the entire platter continuously to get to all your different files. You may actually see faster performance with lower concurrency in this case.