From: Jakub Narebski Date: Wed, 20 Feb 2008 23:31:28 GMT Subject: Re: git svn forking an awful lot of "git config"s Message-ID: In-Reply-To: <20080220223953.GA32663@hand.yhbt.net> Eric Wong writes: > Many months ago, I thought about implementing a transparent caching layer > in Git.pm to work with git configs. Of course, that requires > cooperation from all readers/writers within the process... Done > correctly, it would help more than just git-svn. too. Take a look how gitweb uses "git config -z -l" to read all config in one go, and save it to hash for later use, lazily. > I think I had this idea around the time we made git-config output Perl > hashes and arrays. This is an alternate solution, better for simple scripts and one-off scripts (you don't need to write "git config -z -l" parser), but I think that additional eval might be not good for performance. -- Jakub Narebski Poland ShadeHawk on #git