From: Sam Vilain Date: Mon, 11 Jun 2007 11:43:54 GMT Subject: Re: [PATCH] git-svn: cache max revision in rev_db databases Message-ID: <466D357A.8070605@vilain.net> In-Reply-To: <20070610214753.GC12222@muzzle> Eric Wong wrote: > Sam Vilain wrote: > >> Cache the maximum revision for each rev_db URL rather than looking it >> up each time. This saves a lot of time when rebuilding indexes on a >> freshly cloned repository. >> > > It looks correct, but I'm not sure how often we can even hit this > optimization to make it worth it. > > Any live repositories and benchmarks you've run this on? > (without the rev-list => log patch applied, which would be a big > performance improvement if all log messages were under 16k). > It may not make a huge difference with the current code, but it might with a different rev_db back-end with higher connection cost, and it seemed like an obvious and innocuous enough memoization. Sam