Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-22 Thread Duy Nguyen
On Wed, Apr 23, 2014 at 1:56 AM, Karsten Blees wrote: > Am 22.04.2014 12:35, schrieb Duy Nguyen: >> On Tue, Apr 22, 2014 at 5:13 PM, Duy Nguyen wrote: IIRC name_hash.c::lazy_init_name_hash took ~100ms on my system, so hopefully you did a dummy 'cache_name_exists("anything")' before sta

Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-22 Thread Karsten Blees
Am 22.04.2014 12:35, schrieb Duy Nguyen: > On Tue, Apr 22, 2014 at 5:13 PM, Duy Nguyen wrote: >>> IIRC name_hash.c::lazy_init_name_hash took ~100ms on my system, so >>> hopefully you did a dummy 'cache_name_exists("anything")' before starting >>> the measurement of the first run? >> >> No I didn

Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-22 Thread Duy Nguyen
On Tue, Apr 22, 2014 at 5:13 PM, Duy Nguyen wrote: >> IIRC name_hash.c::lazy_init_name_hash took ~100ms on my system, so hopefully >> you did a dummy 'cache_name_exists("anything")' before starting the >> measurement of the first run? > > No I didn't. Thanks for pointing it out. I'll see if I ca

Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-22 Thread Duy Nguyen
On Tue, Apr 22, 2014 at 4:56 PM, Karsten Blees wrote: > Am 17.04.2014 07:51, schrieb Nguyễn Thái Ngọc Duy: >> This patch serves as a heads up about a feature I'm working on. I hope >> that by posting it early, people could double check if I have made >> some fundamental mistakes that completely ru

Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-22 Thread Karsten Blees
Am 17.04.2014 07:51, schrieb Nguyễn Thái Ngọc Duy: > This patch serves as a heads up about a feature I'm working on. I hope > that by posting it early, people could double check if I have made > some fundamental mistakes that completely ruin the idea. It's about > speeding up "git status" by cachin

Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-17 Thread Duy Nguyen
On Fri, Apr 18, 2014 at 2:40 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >>first run second (cached) run >> gentoo-x86500 ms 71.6 ms >> wine 140 ms 9.72 ms >> webkit125 ms 6.88 ms >> linux-2.6 106 ms

Re: [RFC] Speed up "git status" by caching untracked file info

2014-04-17 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: >first run second (cached) run > gentoo-x86500 ms 71.6 ms > wine 140 ms 9.72 ms > webkit125 ms 6.88 ms > linux-2.6 106 ms 16.2 ms > > Basically untracked time is cut to one tent