git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-gui: suggest gc only when counting at least 2 objects

From
Clemens Buchacher <drizzd@aon.at>
Date
Sep 13, 2009, 21:19 UTC
Message-ID
<20090913211916.GA5029@localhost>
In-Reply-To
<20090913204433.GA8796@coredump.intra.peff.net>
On Sun, Sep 13, 2009 at 04:44:33PM -0400, Jeff King wrote:
Show 11 quoted lines
> On Sun, Sep 13, 2009 at 08:41:50PM +0200, Clemens Buchacher wrote:
> 
> > On Sun, Sep 13, 2009 at 10:58:45AM -0700, Junio C Hamano wrote:
> > > Somebody cares to explain why this threashold number has to be different
> > > per platform in the first place? 
> > 
> > I really don't know. I vaguely remember someone claim that performance on
> > Windows suffered from many loose objects more than on other platforms. I
> > can't find any discussion of it though.
> 
> Maybe 8ff487c?

Ok. But it's been 2 years since then and if I'm not mistaken, there have been a number of performance improvements to msysgit. So maybe it's time to revisit that threshold.

If, on the other hand, requiring 2 objects really is too many, we should maybe check at least two or four directories, which would greatly improve the statistic.

For example, the probability of q directories containing q objects, for n objects total is

n \ q 1 4 50 18% 1% 100 32% 7% 200 54% 38% 500 86% 95%

Clemens
Previous: Jeff KingNext: Clemens Buchacher
Message 11 of 13 in “preserve mtime of local clone”
  1. preserve mtime of local cloneClemens Buchacher, Sep 9, 2009
  2. Junio C HamanoSep 12, 2009
  3. Clemens BuchacherSep 12, 2009
  4. preserve mtime of local cloneClemens Buchacher, Sep 12, 2009
  5. Junio C HamanoSep 13, 2009
  6. preserve mtime of local cloneClemens Buchacher, Sep 13, 2009
  7. git-gui: suggest gc only when counting at least 2 objectsClemens Buchacher, Sep 13, 2009
  8. Junio C HamanoSep 13, 2009
  9. Clemens BuchacherSep 13, 2009
  10. Jeff KingSep 13, 2009
  11. Clemens BuchacherSep 13, 2009
  12. git-gui: search 4 directories to improve statistic of gc hintClemens Buchacher, Sep 13, 2009
  13. Shawn O. PearceSep 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.