Re: [PATCH] Cache stat_tracking_info() for faster status and branch -v

2012-10-20 Thread Nguyen Thai Ngoc Duy
On Sat, Oct 20, 2012 at 2:50 AM, Junio C Hamano wrote: > Not particularly interested in the cause, but not so strongly > against it to veto it. I wonder how many people keep old branches like I do, which are usually far from remotes. > Doesn't it make more sense to use a notes-cache that is keye

Re: [PATCH] Cache stat_tracking_info() for faster status and branch -v

2012-10-19 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > stat_tracking_info() is used to calculated how many commits ahead or > behind for a branch. Rev walking can be slow especially when the > branch is way behind its remote end. By caching the results, we won't > have to rev walk every time we need these information.

[PATCH] Cache stat_tracking_info() for faster status and branch -v

2012-10-16 Thread Nguyễn Thái Ngọc Duy
stat_tracking_info() is used to calculated how many commits ahead or behind for a branch. Rev walking can be slow especially when the branch is way behind its remote end. By caching the results, we won't have to rev walk every time we need these information. stat_tracking_info() cost can be greatly