From: Petr Baudis Date: Tue, 16 Oct 2007 23:20:58 GMT Subject: Re: [PATCH] gitweb: Speed up get_projects_list for large source trees Message-ID: <20071016232058.GA18279@machine.or.cz> In-Reply-To: <3A2DCEC6-953A-41B0-AB9E-7374EEB625E8@vicaya.com> Hi, On Tue, Oct 16, 2007 at 02:04:14AM -0700, Luke Lu wrote: > Hi, I've been using git for a month now and loving it. This is my first > ever patch for git using git. I spent sometime to find out why the project > listing is taking 200s, everytime! I guess that gitweb is mostly used to > serve bare repositories, which would never encounter such problems. It > takes .2s, after the patch on my laptop. That's 1000x improvement for me > (on Mac OS X 1.4.10.) that'd be sweet to have but this is unfortunately not so simple; this change would e.g. break gitweb on repo.or.cz, where some projects can live quite deep inside the tree due to forks. I guess the best way would be to introduce a configuration option that lets you potentially limit the $pfxdepth, but does not force the limit. -- Petr "Pasky" Baudis Early to rise and early to bed makes a male healthy and wealthy and dead. -- James Thurber