Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas036.isp.belgacom.be (localhost [127.0.0.1])
        by inav006.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id l0FFsX53012463
        for <joris.at.lebbeke@skynet.be>; Mon, 15 Jan 2007 16:54:33 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx016.isp.belgacom.be (inmx016.isp.belgacom.be [195.238.4.219])
        by inas036.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id l0FFsS26017989
        for <joris.at.lebbeke@skynet.be>; Mon, 15 Jan 2007 16:54:30 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx016.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id l0FFsMbO019761
        for <joris.at.lebbeke@skynet.be>; Mon, 15 Jan 2007 16:54:22 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l0FFfgYB030602;
	Mon, 15 Jan 2007 10:41:52 -0500
Received: from outmx005.isp.belgacom.be (outmx005.isp.belgacom.be
	[195.238.4.102])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l0FFfefa030599
	for <tiff@lists.maptools.org>; Mon, 15 Jan 2007 10:41:40 -0500
Received: from outmx005.isp.belgacom.be (localhost [127.0.0.1])
	by outmx005.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22)
	with ESMTP id l0FFfUTR013437
	for <tiff@lists.maptools.org>; Mon, 15 Jan 2007 16:41:30 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (188.147-246-81.adsl-dyn.isp.belgacom.be
	[81.246.147.188])
	by outmx005.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-OUT-2.22)
	with SMTP id l0FFfM5P013346; Mon, 15 Jan 2007 16:41:22 +0100
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <000a01c738bb$cb4f7350$bc93f651@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "Tomasz Bywalec" <t.bywalec@gmail.com>, <tiff@lists.maptools.org>
References: <45AB99C9.3060403@gmail.com>
Subject: Re: [Tiff] TiffOpen opens file too long
Date: Mon, 15 Jan 2007 16:42:37 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="ISO-8859-2"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896
Cc: 
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001f5f
X-MSP-STORE: Mon, 15 Jan 2007 16:54:37 +0100
Status:   

Tomasz,

Tomasz Bywalec wrote:
> I compiled libTiff 3.8.2 library for PocketPC platform, using Visual
> C++ 2005 compiler (with optimalization turned on). I use it to open
> quite large (about 12000x8000) black-and-white images. I noticed that
> TiffOpen spends about 2 seconds just opening the file and reading
> it's directory (reading and decoding stripes is much faster, so I
> think that it's not because of slow I/O or something like that). With
> option 'h' (read header only), TiffOpen returns almost immediately,
> so I suppose that it spends so much time on reading file's first
> directory. And here's my question - is it possible to speed up the
> execution of TiffOpen (including: opening the file and reading it's
> directory), in that case ?
>
> Just in case - images, which my program reads, are usually divided in
> stripes, each having height of about 30 pixels (so file consists of
> few hundred stripes).

Is it possible there are huge tags in there? Can you show us a tiffdump,
tagdump, tag viewer dump, or anything that would allow us to correlate
the problem with the particular TIFF features?


Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
