From: Duy Nguyen Date: Fri, 15 Apr 2016 00:07:09 GMT Subject: Re: [PATCH v4 03/16] index-helper: new daemon for caching index and related stuff Message-ID: In-Reply-To: <1460653332.5540.84.camel@twopensource.com> On Fri, Apr 15, 2016 at 12:02 AM, David Turner wrote: >> > On webkit.git with index format v2, duplicating 8 times to 1.4m >> > entries and 200MB in size: >> > >> > (vanilla) 0.986986364 s: read_index_from .git/index >> > (index-helper) 0.267850279 s: read_index_from .git/index >> > >> > Interestingly with index v4, we get less out of index-helper. It >> > makes >> > sense as v4 requires more processing after loading the index: >> > >> > (vanilla) 0.722496666 s: read_index_from .git/index >> > (index-helper) 0.302741500 s: read_index_from .git/index >> > >> > (these benchmarks are from an earlier version of this patch, but >> > should >> > still be valid). >> >> Just something to keep in mind; we'd need to see updated numbers >> when the series matures. > > I don't actually know how Duy did the index duplication for this > benchmark. Duy? Start with webkit.git (which was one of the biggest worktree i found), then put the entire directory structure in a subdirectory e.g. git ls-files --stage | sed 's/\t/\tsubdir1\//' | git update-index --add --index-info --stdin repeat until you get to a reasonable size. -- Duy