[MERGE] Faster code for pushing from packs back into knits

John Arbash Meinel john at arbash-meinel.com
Sat Nov 17 00:30:02 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John Arbash Meinel wrote:
> As I mentioned to Robert earlier the code we have for packs => knits
> rebuids the complete history of every text that was modified. Very
> painful. The attached code just changes it to add them text by text.
> It isn't 100% optimal, because it extracts full texts one by one. However
> I'm trying to be more sensitive towards memory consumption. (I think a lot
> of our fetch() code buffers far too much in memory.)
> 
> It should actually be a bit better about memory consumption since it uses
> the LRUSizeCache to cap at 10MB of cached parent texts. (The existing
> InterVersionedFile.join() code builds up a new knit into memory, and
> caches all parent texts in a dictionary.)

I meant to mention that this is built on my LRUCache patch, so I sent this in
as a cherrypick.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPjYKJdeBCYSNAAMRArCtAJ4ol/i9ggdUYSebK9XF4Rm5pToldQCgj3g9
HDBX0IrTCeTBrSfMjeOC34Y=
=7LG6
-----END PGP SIGNATURE-----



More information about the bazaar mailing list