Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH / RFC] cherry: cache commit to patch-id pairs to avoid repeating work

From: Geoffrey Irving <hidden>
Date: 2016-06-15 22:44:42

On Sat, Jun 7, 2008 at 4:36 PM, Geoffrey Irving [off-list ref] wrote:
Added cached-sha-map.[hc] implementing a persistent hash map from sha1 to sha1.
The map is read with mmap, and completely rewritten if any entries change.  It
would be good to add incremental update to handle the usual case where only a
few entries change.

This structure is used by patch-ids.c to cache the mapping from commit to
patch-id into $GIT_DIR/patch-id-cache.  In the one case I've tested so far,
this speeds up the second invocation of git-cherry by two orders of magnitude.

Original code cannibalized from Johannes Schindelin's notes-index structure.

<snip>
Forgot to cc people from previous threads.

Is starting a new thread each time I update a patch the correct way to
do things?

Geoffrey
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help