Re: No progress from push when using bitmaps
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Mar 14, 2014, 10:21 UTC
- Message-ID
- <CACsJy8BZd0uL2M8NHO+sFcWfkmoyuVnU1Mh2eKZ2OXm=Y-Ge5g@mail.gmail.com>
- In-Reply-To
- <5322CF58.6060506@alum.mit.edu>
On Fri, Mar 14, 2014 at 4:43 PM, Michael Haggerty <mhagger@alum.mit.edu> wrote:
> Would it be practical to change it to a percentage of bytes written? > Then we'd have progress info that is both convenient *and* truthful.
I agreed for a second, then remembered that we don't know the final pack size until we finish writing it.. Not sure if we could estimate (cheaply) with a good accuracy though.
If an object is reused, we already know its compressed size. If it's not reused and is a loose object, we could use on-disk size. It's a lot harder to estimate an not-reused, deltified object. All we have is the uncompressed size, and the size of each delta in the delta chain.. Neither gives a good hint of what the compressed size would be.
-- Duy