git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* caching commit patch-ids for fast git-cherry
@ 2008-05-29 17:01 Geoffrey Irving
  2008-05-29 17:13 ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Geoffrey Irving @ 2008-05-29 17:01 UTC (permalink / raw)
  To: git@vger.kernel.org

I'm planning to use cherry picking to manage long term syncing between
cvs/perforce and git repositories.  This means I'll have scripts
running git-cherry between branches with hundreds of uncommon commits,
and I want git-cherry to be much, much, faster.

It looks like I can do this by caching commit->patch-id pairs from
commit_patch_id() in patch-ids.c to a file, say
$GIT_DIR/commit-patch-id-cache.  The file would be binary and append
only, and could be blown away if .  Any suggestions / concerns before
I write this?  Is there any reusable efficient map code for storing
the commit->patch-id map, or should I just mirror the blocked storage
+ binary search used for struct patch_ids?

Thanks,
Geoffrey

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-29 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-29 17:01 caching commit patch-ids for fast git-cherry Geoffrey Irving
2008-05-29 17:13 ` Johannes Schindelin
2008-05-29 17:34   ` Geoffrey Irving
2008-05-29 22:19     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).