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.22 18:11 "Re: creating sparse files......", by Bob Friesenhahn

On Fri, 22 Aug 2008, Rogier Wolff wrote:

> Absolutely. And I'm suggesting making it faster. If there are /any/
> nonzeroes, the "isallzeroes" function is likely to terminate quickly.
> It isn't likely all nonzeroes are at the end.

That sounds reasonable.

> If we make several applications faster, and one slower why is this
> bad?

Do you mind if the application which becomes slower is your own 
application?

> Performance changes, or any change at all, is usually a tradeoff. You
> make some (unlikley) path slower, to improve on the (likely) paths.

It is not clear that images containing large blocks of zero bytes are 
the norm.  Perhaps certain types of bilevel images would have large 
blocks of zero bytes if they were not compressed but these images are 
normally compressed.

> Why did I suggest this?
>
> a) It's simple. It's just about 10 lines of code, and it will make a
> marked perofrmance improvement.

While libtiff is a pretty boring open source project, libtiff itself 
is one of the top three image format libraries in the world (the other 
two are libjpeg and libpng) so any included enhancement for holey 
files should be very well proven on many types of systems (even 
Microsoft Windows), or be a compile time option.

Not all Unix systems seem to support creating holes.  For example, 
Apple OS-X's HFS+ does not support holes.  Windows FAT type 
filesystems (still very much in use in millions of systems/devices) do 
not support holes.  It is unlikely that the ISO9660 filesystem (used 
on CDs) supports holes.  It is likely that some popular filesystems 
will fail to seek past the end of the file or will return random bytes 
(or parts of some previously deleted file) for the uninitialized 
portions.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/