Write time very variable
Posted: 2016-07-22T05:26:47-07:00
I am adding a barcode to a TIFF file (read, composite, write) and the time taken by the write() call varies quite significantly depending upon where I place the bar code.
I am monitoring the ImageInfo progress as part of the process.
The source file is a single-strip LZW compressed TIFF file (18.6" x 12.2" @2540 dpi).
The final column is the approximate time between making the write() call and the progress monitor method being called for the first time.
Placing the barcode at the bottom of the image seems to cause the write() call to take approximately twice as long as placing it at the top.
Any suggestions as to what IM is doing for the additional 30 seconds, as the copyPixels command seems to take about the same time regardless of the position?
Peter Young
I am monitoring the ImageInfo progress as part of the process.
The source file is a single-strip LZW compressed TIFF file (18.6" x 12.2" @2540 dpi).
Code: Select all
Barcode Overall Time before write
Position Time write progress starts
tlc 31.7s 10.3s
trc 31.83s 10.4s
blc 69.02s 46.4s
brc 65.58s 42.8s
Placing the barcode at the bottom of the image seems to cause the write() call to take approximately twice as long as placing it at the top.
Any suggestions as to what IM is doing for the additional 30 seconds, as the copyPixels command seems to take about the same time regardless of the position?
Peter Young