[MERGE] Support empty keys when looking for common prefixes in CHKMap.
Jelmer Vernooij
jelmer at vernstok.nl
Wed May 13 23:24:45 BST 2009
On Wed, May 13, 2009 at 05:05:32PM -0500, John Arbash Meinel wrote:
> Jelmer Vernooij wrote:
> > Trivial issue found by bzr-svn's file id map implementation based on
> > CHKMap, which uses the entry ('',) that would otherwise cause "local
> > variable pos not set" exceptions.
> BB:approve
> Out of curiosity, are you using a hash function for the search key?
Not that I'm aware of.. I'm just using 1-tuples with the path of each
file/directory. How would a hash function help exactly? More efficient
in terms of disk space, better performance? I still need to iterate
over all keys in a CHKMap, so I would have to store them elsewhere I
guess if I used a hash function.
Cheers,
Jelmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 315 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090514/26f45131/attachment-0001.pgp
More information about the bazaar
mailing list