[MERGE] Make _nodes_by_key lazy

John Arbash Meinel john at arbash-meinel.com
Thu Aug 28 21:22:05 BST 2008


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

Robert Collins wrote:
> Robert Collins has voted resubmit.
> Status is now: Resubmit
> Comment:
> Rather than copying in the duplicate code, please refactor the base to
> have a helper method that does the stuff we want to reuse.

Done in attached.
I also factored out the "spill" code from add_node into a helper. It makes
things a bit easier to follow. I also added documentation for
_spill_mem_keys_to_disk.  Can you make sure that my understanding is correct?

John
=:->

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

iD8DBQFItwjtJdeBCYSNAAMRAj+kAKCuZN6xfRdZhjfs/3cBkK2h8VWmOgCfQtSS
VztI2cHxMjzzJkH3f9PBSp0=
=RsiL
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: index_lazy_nodes_by_key.patch
Type: text/x-diff
Size: 34863 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080828/c0db6146/attachment-0001.bin 


More information about the bazaar mailing list