On 01/26/2011 04:38 PM, Sitaram Chamarty wrote:
> On Wed, Jan 26, 2011 at 09:24:54PM +0100, Marcin Gozdalik wrote:
>> Hello
>>
>> Recently I noticed that expand command on gitolite on our server is
>> extremely slow - more than 1 minute for a very modest size gitolite
>> installation (10 repositories). After quick debugging I found that expand
>> does a
>>
>> find . -name "*.git"
>>
>> in repositories. It turned out that this operation was extremely slow due to
>> some problems on our network drive the gitolite is hosted on. I propose a
>> quick fix to speed up expand:
>>
>> find . -name "*.git" -prune
>>
>> which does not recurse into a *.git repository once it found and does not
>> spend time in browsing through all the objects/* directories.
>
> Thanks. I will make this change.
I would also suggest adding '-type d' in there, since .git will always
be a directory.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kfle...@digium.com
Check us out at www.digium.com & www.asterisk.org