Comment 6 for bug 402623

Revision history for this message
Martin Pool (mbp) wrote : Re: [Bug 402623] Re: .cix thrashing causes us to re-download the whole index multiple times

2009/8/15 John A Meinel <email address hidden>:
> So the trivial fix is:
> === modified file 'bzrlib/btree_index.py'
> --- bzrlib/btree_index.py       2009-08-13 19:56:26 +0000
> +++ bzrlib/btree_index.py       2009-08-14 18:55:59 +0000
> @@ -46,7 +46,7 @@
>  _PAGE_SIZE = 4096
>
>  # 4K per page: 4MB - 1000 entries
> -_NODE_CACHE_SIZE = 1000
> +_NODE_CACHE_SIZE = 100000

That's the kind of thing I'd look at putting in
-Dindex_cache_size=100000 (which would require a small patch to
support key/value debug flags); obviously it's inferior to just
working but it's more feasible for most users than a patch or even a
plugin.

--
Martin <http://launchpad.net/~mbp/>