AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.01.27 22:18 "[Tiff] (no subject)", by Joel Wilson
2006.01.27 22:52 "Re: [Tiff] MSVC 2005 debug", by Edward Lam
2006.01.30 18:11 "Re: [Tiff] (no subject)", by Frank Warmerdam
2006.01.31 14:22 "RE: [Tiff]MSVS 2005 build", by Joel Wilson
2006.02.02 14:33 "[Tiff] Fastest method to load tiff files?", by Edward Lam
2006.02.02 15:00 "Re: [Tiff] Fastest method to load tiff files?", by
2006.02.02 15:29 "Re: [Tiff] Fastest method to load tiff files?", by Edward Lam
2006.02.02 15:36 "Re: [Tiff] Fastest method to load tiff files?", by Frank Warmerdam

2006.02.02 15:36 "Re: [Tiff] Fastest method to load tiff files?", by Frank Warmerdam

On 2/2/06, Edward Lam <edward@sidefx.com> wrote:

What is the fastest way to read tiff files using libtiff?

Edward,

I would guess to use the TIFFReadEncodedStrip() or TIFFReadEncodedTile() functions, and to ensure you go from first to last strip/tile in order. I don't think you will gain much speed over that by special techniques.

You might want to recognise some special cases, like packed stripped uncompressed 8bit data and just do a direct read or memory map of the data, but I doubt it will help much.

You might also want to look at using the memory mapping support which sometimes can be faster than "normal" file IO.

Best regards,
--

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent