AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
November 2008

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2008.11.14 08:29 "Memory leak (TIFFOpen, TIFFReadTile)?", by Ilkka Korpela
2008.11.14 17:49 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
2008.11.14 18:37 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Ilkka Korpela
2008.11.14 19:11 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Frank Warmerdam
2008.11.14 21:37 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Craig Bruce
2008.11.14 22:13 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Phillip Crews
2008.11.14 23:31 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
2008.11.15 17:07 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Craig Bruce
2008.11.17 16:33 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
2008.11.17 17:20 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Frank Warmerdam
2008.11.17 17:39 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
2008.11.19 20:09 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Frank Warmerdam
2008.11.19 20:21 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Craig Bruce
2008.11.19 20:47 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Edward Lam
2008.11.19 21:09 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Craig Bruce
2008.11.19 20:56 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Andy Cave
2008.11.20 04:17 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by <ron@debian.org>
2008.11.20 04:47 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
2008.11.20 08:17 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by <jcupitt@gmail.com>
2008.11.17 21:44 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by <jcupitt@gmail.com>
2008.11.17 22:22 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Bob Friesenhahn
2008.11.17 22:47 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by <jcupitt@gmail.com>
2008.11.14 22:03 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Phillip Crews

2008.11.19 20:56 "Re: Memory leak (TIFFOpen, TIFFReadTile)?", by Andy Cave

FWIW We use our own file I/O with libtiff (like a lot of people - or so I 
get the impression) and that definitely does not use memory mapped IO; that 
causes too many issues. For anyone who does anything with image data, who 
therefore knows what they are doing (certainly more than the OS), reading & 
caching the data themselves is far more efficient (since they know what 
there are doing) than letting the OS 'guess'. If you use memory mapped IO 
you run the risk of running out of address space, the OS can end up paging 
other data out of memory which is more valuable (especially if you access 
the data once), etc... If you access the data more than once, you can 
arrange to cache that which you use more than once, or do other clever 
stuff, etc... Memory mapping was touted years ago as the solution for memory 
problems, but personally I've never been convinced.

Regards,

Andy.

----- Original Message ----- 
From: "Edward Lam" <edward@sidefx.com>
To: <tiff@lists.maptools.org>
Sent: Wednesday, November 19, 2008 8:47 PM
Subject: Re: [Tiff] Memory leak (TIFFOpen, TIFFReadTile)?


Maybe a pertinent question is whether anyone is using the default
TIFFOpen()? Maybe everyone opens their tiff file with the explicit flag
to not memory map. :)

-Edward

Craig Bruce wrote:
> Frank Warmerdam <warmerdam@pobox.com> wrote:
>
>> I'm not getting any strong mandate to change the current behavior so
>> I'm inclined to do nothing - my usual preference.
>
> My position is that it should be changed because memory-mapped I/O is
> a bit unusual and casual TIFF-lib users won't be expecting it or its
> associated problems with large files.  Though, of course, I have found
> a work-around for my own TIFF-lib usage.
>
> --------------------------+----------------------+--------------------------
> Dr. Craig S. Bruce        | Ph 819-771-8303 x205 |             CubeWerx 
> Inc.
> Senior Software Developer |   Fax 819-771-8388   |  Gatineau, Québec, 
> Canada
> csbruce@cubewerx.com      |  http://csbruce.com/ | 
> http://www.cubewerx.com/
> --------------------------+----------------------+--------------------------
>      "Man will never be free until the last king is strangled with the
>                   entrails of the last priest." -- Diderot
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/

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