2020.02.10 16:05 "[Tiff] How to make tiff rotation faster", by V. Krishna Karthik

2020.02.13 14:14 "Re: [Tiff] How to make tiff rotation faster", by Bob Friesenhahn

For the record, I am reporting some metrics that I observe using three different programs (all of which use libtiff) to rotate the files you provided to me. These tests are done on a 9-year old Intel (Intel Xeon E5649 @ 2.53GHz) system running Ubuntu 18.04.

tiffcrop -R 90 in.tiff out.tiff:

   time      - 19.59s user 0.15s system 99% cpu 19.750 total
   peak heap - 247,439,163

GraphicsMagick (Q8) convert in.tiff -rotate 90 out.tiff:

   time      - 12.76s user 5.12s system 122% cpu 14.638 total
   peak heap - 9,869,121,702

vips rot in.tiff out.tiff d90:

   time      - 15.90s user 45.00s system 220% cpu 27.572 total
   peak heap - 23,907,6401

From the above, we see that vips used the least memory but the longest run-time and GraphicsMagick required the least run-time, although it consumed massive amounts of memory.

Using the progress monitor in GraphicMagick it is clear that decode and encode are taking the majority of the time.

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt