Re: 'git gc' & number of unpacked objects ?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yakov Lerner <iler.ml@...>
Cc: Git Mailing List <git@...>
Date: Tuesday, July 17, 2007 - 4:57 pm

Yakov Lerner wrote:

I also wrote a commit hook that counts loose objects and just runs
repack with differing parameters.  Check for threads with terms
"generational repack" in them.

To make it a really fast check, Linus suggested estimating the number of
loose objects with a sample, eg if the threshold is 256 loose objects
and you find 3 or more objects in directories 01, 02, and 03 then it's
time to repack.

I've been using the script I posted on my own repositories for a while
and was never really annoyed by the 2-3s aside it took every few dozen
commits to repack.  But then I'm probably biased and usually playing on
relatively zippy machines.

Sam.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
'git gc' &amp; number of unpacked objects ?, Yakov Lerner, (Tue Jul 17, 12:14 pm)
Re: 'git gc' & number of unpacked objects ?, Sam Vilain, (Tue Jul 17, 4:57 pm)