Turn on git pack bitmaps?

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: pgsql-www(at)postgresql(dot)org
Subject: Turn on git pack bitmaps?
Date: 2015-02-19 15:41:46
Message-ID: 20150219154146.GA6093@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

Hi,

Right now cloning/refreshing a repository often spends a fair amount of
its time in the 'Counting objects' stage. Since git 2.0 git has a
'bitmap index' feature for packs. I wonder if that could be enabled on
gitmaster/git.pg.o? Saves both time and CPU.

# enable it everywhere
git config --global pack.writebitmaps on
git config --global pack.writeBitmapHashCache on
git config --global pack.threads 0 # make gc/repack faster, autodetect cpus

# and write it by repacking
git gc --aggressive --no-prune

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Magnus Hagander 2015-02-19 15:50:56 Re: Turn on git pack bitmaps?
Previous Message Magnus Hagander 2015-02-18 16:02:00 Re: Commitfest URL problem