Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: [PATCH] read-cache.c: fix index memory allocation

From: Nguyen Thai Ngoc Duy <hidden>
Date: 2016-06-15 22:52:19

Possibly related (same subject, not in this thread)

On Tue, Oct 25, 2011 at 10:34 AM, Nguyen Thai Ngoc Duy
[off-list ref] 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help