[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Compressed Pristines (Summary)

From: Mark Phippard <markphip_at_gmail.com>
Date: Wed, 4 Apr 2012 13:23:41 -0400

On Wed, Apr 4, 2012 at 1:18 PM, Ashod Nakashian
<ashodnakashian_at_yahoo.com> wrote:

> That's an easy question. The answer is that at *best* they'll do as good as in-place compression. However, in practice
> they'll do much worse. The reason is that the OS level compression works on not only the single file level, but actually
> at the block level. This is to make modifications reasonably fast (read compressed data, uncompress, modify, write
> recompressed data). If the complete file is compressed then even changing a single byte (neglecting that no storage
> works on the byte-level anyway) will yield performance that will at least linearly degrade by the filesize.

FWIW, that is exactly my concern with your custom file format. I do
not see how you can achieve the benefits you expect without needing to
repack files and I do not see how that can perform reasonably.

That said, you also seem aware that the solution has to perform well
so at worst it is just a question as to whether you want to spend the
cycles to prove it can work and achieve all the goals. I am skeptical
but look forward to being wrong.

The lazy part of me thinks storing files up to 32KB in SQLite and
storing the rest as just single compressed files would give 99% of our
users what they want and would be less likely to have issues.

-- 
Thanks
Mark Phippard
http://markphip.blogspot.com/
Received on 2012-04-04 19:24:14 CEST

This is an archived mail posted to the Subversion Dev mailing list.