ExifTool Forum

ExifTool => Developers => Topic started by: rkalla on August 14, 2011, 11:49:28 AM

Title: -stay_open performance gains are awesome.
Post by: rkalla on August 14, 2011, 11:49:28 AM
Just wanted to take the time to send some thanks to Phil for adding the -stay_open functionality recently.

I evaluated a multitude of EXIF Java libraries for integration with imgscalr and the only one that made sense to me was using ExifTool (because it was so robust). When I originally evaluated the integration performance was OK for small tasks, but didn't scale for high-performance apps like a busy web app churning through 100s or 1000s of images a minute.

I wrote a quick benchmark last night using the new stay-open functionality that pulls 26 tags from 1000 images on a Core2 Duo 3.0Ghz CPU (12GB ram). The version using -stay_open was 39x faster (8.8 secs, ~8ms per op) than the non-stay-open version (345 secs, ~320ms per op).

Needless to say I was really thrilled with the results and am able to push forward on the Java ExifTool library without concern for performance in high traffic sites now.

Thank you Phil for the hard work, you made my life a lot easier.
Title: Re: -stay_open performance gains are awesome.
Post by: Phil Harvey on August 14, 2011, 01:57:56 PM
Great.  Glad to hear you found this feature useful.

- Phil