git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Pitre <nico@cam.org>
To: Junio C Hamano <junkio@cox.net>
Cc: Dana How <danahow@gmail.com>, Git Mailing List <git@vger.kernel.org>
Subject: Re: [RFD/PATCH] Implement pack.compression and pack-objects --compression=N
Date: Fri, 04 May 2007 09:47:50 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LFD.0.99.0705040937250.24220@xanadu.home> (raw)
In-Reply-To: <7vejlxxho1.fsf@assigned-by-dhcp.cox.net>

On Thu, 3 May 2007, Junio C Hamano wrote:

> "Dana How" <danahow@gmail.com> writes:
> 
> > So for a 25% increase in blob size I get 33% less elapsed time
> > in git-add, all by changing core.compression from -1 to 1.
> > I'll definitely take that improvement.  [For the compressible files
> > we typically have, using 0 is a bad idea:  the CPU "advantage"
> > is swamped out by the time to write a much larger file.]
> 
> The above number is about loose objects, right?
> 
> > Since I don't care [to the same degree] about the responsiveness of
> > packing,  I'd rather pack with -1 or better to keep packs small.
> 
> I see.  You are saying that the fact that core.compression is
> used also for packing makes the variable less useful.

I think that would make sense to have separate configs for pack and 
loose object compression.  When not specified they should simply default 
to core.compression if it exists.  Otherwise I'd suggest that pack 
compression default level be Z_DEFAULT_COMPRESSION and loose object 
compression default level be Z_BEST_SPEED.  This would make interactive 
operations like git-add and git-commit even faster by default.


Nicolas

  parent reply	other threads:[~2007-05-04 13:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-02  3:18 [RFD/PATCH] Implement pack.compression and pack-objects --compression=N Dana How
2007-05-02 18:40 ` Junio C Hamano
2007-05-02 18:55   ` Dana How
2007-05-02 22:51     ` Dana How
2007-05-04  5:49       ` Junio C Hamano
2007-05-04  7:01         ` Dana How
2007-05-04 13:47         ` Nicolas Pitre [this message]
2007-05-04 16:10           ` Dana How
2007-05-04 16:30             ` Nicolas Pitre
2007-05-04 19:51               ` Dana How
2007-05-04 20:17                 ` Nicolas Pitre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.0.99.0705040937250.24220@xanadu.home \
    --to=nico@cam.org \
    --cc=danahow@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).