CHKMap usage - optimizations?

Jelmer Vernooij jelmer at samba.org
Wed May 13 14:19:17 BST 2009


Hi Robert,

I've got the file id map in bzr-svn based on CHKMap working. Performance
is better than with a "plain" Knit as I was using before, but it's still
quite slow.

I'm storing these file id maps in a batch, in a linear way: basically a
lot of iterations of:

 * map = CHKMap(store, x)
 * analyse log output for a particular revision to determine delta
 * x = map.apply_delta(delta)

Most of the time is spent in CHKMap at the moment:

CHKMap.apply_delta(): 77.63%
 * of which: Knit.add_lines(): 47.27%
CHKMap.iteritems(): 5.14%

What's the best way of improving this performance ? Switching to packs?
Is there some way I can use transactions here?

Cheers,

Jelmer



More information about the bazaar mailing list