genindex.sh: take optional project name to increase speed
commit6a8e5dd5a97fb7c04f0c7718df52bf53e3b4d39c
authorKyle J. McKay <mackyle@gmail.com>
Tue, 3 Mar 2015 05:50:16 +0000 (2 21:50 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 3 Mar 2015 05:50:16 +0000 (2 21:50 -0800)
tree90facd71d3e41960a733f37579cff302959fd4d2
parent6a37fbbd9884a57c246c954f82f8fdc1acc53cdb
genindex.sh: take optional project name to increase speed

If an optional project name is given, then only the entry
for that project name will be updated.

Running git config unnecessarily thousands of times just to
add or remove one entry makes project creation and deletion
unnecessarily slow.  Instead we can use join to extract the
previously computed values for all the entries we're not
updating to save time.

It's not so much the actual time it takes to retrieve the
config entry as it is the disk waiting to access files that
may not be in the cache and also the churn of creating all
those git processes.
gitweb/genindex.sh