On Tue, Oct 25, 2011 at 10:34 AM, Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> wrote: > "git status" is slow. If your changes causes slowdown, it won't likely > stand out while other fast commands may show (read_cache() is used in > nearly all commands). So I tested using the following patch. > > The result on linux-2.6 shows about 10-20 us slowdown per each > read_cache() call (30-40 us on webkit, ~50k files) I think your patch > is good enough :-) That was with -O0 by the way. valgrind/massif shows about 200kb memory more with your patch on webkit repository (7.497 MB vs 7.285 MB), using the same test, so memory overhead is ok too. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html