Re: Git-status / preload_index() performance
- From
David Turner <dturner@twopensource.com>
- Date
- Jun 24, 2014, 23:12 UTC
- Message-ID
- <1403651538.22828.4.camel@stross>
- In-Reply-To
- <53AA0129.1080109@gmail.com>
On Wed, 2014-06-25 at 00:52 +0200, Karsten Blees wrote:
> Even more time is spent unpacking the HEAD tree, even with hot cache (repacking with depth 10 reduces this to ~250ms, on SSD its just 7ms). Perhaps caching the HEAD tree in an index extension could help here?
This is approximately what the cache-tree extension does. However, it's a bit broken. I've been working on a fix, but slowly because my other work has taken me longer than expected. You can see the effect of the cache-tree extension by doing git reset --hard HEAD; this temporarily restores that extension.