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
August 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.08.22 08:56 "creating sparse files......", by Rogier Wolff
2008.08.22 13:11 "Re: creating sparse files......", by Toby Thain
2008.08.22 15:45 "Re: creating sparse files......", by Rogier Wolff
2008.08.22 16:26 "Re: creating sparse files......", by Toby Thain
2008.08.22 14:44 "Re: creating sparse files......", by Bob Friesenhahn
2008.08.22 15:21 "Re: creating sparse files......", by Toby Thain
2008.08.22 16:27 "Re: creating sparse files......", by Rogier Wolff
2008.08.22 16:40 "Re: creating sparse files......", by Bob Friesenhahn
2008.08.22 16:52 "Re: creating sparse files......", by Rogier Wolff
2008.08.22 18:11 "Re: creating sparse files......", by Bob Friesenhahn
2008.08.22 20:02 "Re: creating sparse files......", by Phillip Crews
2008.08.23 00:12 "Re: creating sparse files......", by Edward Lam
2008.08.23 15:26 "Re: creating sparse files......", by Rogier Wolff
2008.08.23 16:07 "Re: creating sparse files......", by Bob Friesenhahn
2008.08.23 16:23 "Re: creating sparse files......", by Rogier Wolff
2008.08.23 16:46 "Re: creating sparse files......", by Bob Friesenhahn
2008.08.23 15:08 "Re: creating sparse files......", by Rogier Wolff
2008.08.23 15:54 "Re: creating sparse files......", by Bob Friesenhahn
2008.08.23 15:58 "Re: creating sparse files......", by Rogier Wolff
2008.08.23 16:02 "Re: creating sparse files......", by Rogier Wolff
2008.08.23 16:51 "Re: creating sparse files......", by Gene Amtower
2008.08.23 17:39 "Re: creating sparse files......", by Rogier Wolff
2008.08.23 18:03 "Re: creating sparse files......", by Toby Thain
2008.08.23 18:49 "Re: creating sparse files......", by Rogier Wolff
2008.08.25 06:28 "Re: creating sparse files......", by Andrey Kiselev
2008.08.25 09:37 "Re: creating sparse files......", by <jcupitt@gmail.com>
2008.08.25 10:41 "Re: creating sparse files......", by Rob Van Den Tillaart
2008.08.25 12:15 "Re: creating sparse files......", by <jcupitt@gmail.com>
2008.08.26 13:14 "Re: creating sparse files......", by Edward Lam

2008.08.25 06:28 "Re: creating sparse files......", by Andrey Kiselev

Roger,

My primary concern about this issue is a portability. I am not sure this
approach is totally portable even across the POSIX-compatible systems
(and there are multiple levels of compatibility, that is what is the
certification for). Also I think the compression will better results
overall. Fast methods, such as LZW and Packbits should be great for this
particular purpose.

Despite of that it is possible to add such a functionality to libtiff.
It can be user-controlled using the TIFFOpen() parameter, just like we
are controlling memory-mapped files usage. If not enabled this code
path should not be used at all. On some systems it should be disabled
during the compile time, just like it is for memory-mapping. Our
documentation states:

M      Enable the use of memory-mapped files for  images  opened  read-
       only.   If  the underlying system does not support memory-mapped
       files or if the specific image being opened  cannot  be  memory-
       mapped then the library will fallback to using the normal system
       interface for reading information.  By default the library  will
       attempt to use memory-mapped files.

We can use the same approach with the sparse files, though it should be
disabled by default.

Roger, if you like to see this in libtiff, please, prepare the patch and
submit it via our Bugzilla. But I would like to see it tested under
various conditions, the FAT and network file systems are mandatory, I see
there is a small likelihood of accidental data loss.

The flag 's' ('sparse') seems to be free for usage in TIFFOpen().

Best regards,
Andrey

-- 
Andrey V. Kiselev
ICQ# 26871517