coreimagetool icon indicating copy to clipboard operation
coreimagetool copied to clipboard

Store process runs strangely slow

Open danhstevens opened this issue 11 years ago • 4 comments

I've noticed that I can run the command-line utility with several filters on various hi-res images and the process will take around 100ms. However, if I add the store option (which is obviously necessary) the time takes between 1000-2000ms. This happens regardless of the image type I'm storing as. Any reason why storing the image causes a 10-20x slowdown of the entire operation? Any tips to speed up the store process would be great!

danhstevens avatar Aug 31 '13 02:08 danhstevens

Slow storage seems to only occur when certain filters are applied - even if the resulting image is small. I'll investigate further - closing for now.

danhstevens avatar Aug 31 '13 02:08 danhstevens

Let me know if you find something interesting...

liyanage avatar Aug 31 '13 20:08 liyanage

I'll go ahead and reopen this since something strange is still happening, specifically with the CILanczosScaleTransform filter. Running that filter and then running store seems to take a couple of seconds on an image. Running other filters like CICrop seem to work almost instantaneously. Any reason you can think of that CILanczosScaleTransform would run much slower than other filters? Is that something you can reproduce?

danhstevens avatar Oct 09 '13 23:10 danhstevens

Can you give me a repro case? A command line (and example input image) that works fast, and one that works slow?

liyanage avatar Oct 11 '13 15:10 liyanage