[Zope-dev] BTree vs dictionary

Andreas Jung lists at andreas-jung.com
Thu Jun 16 11:47:58 EDT 2005



--On 16. Juni 2005 17:32:15 +0200 Yair Benita <y.benita at wanadoo.nl> wrote:

> Now that I know how to use BTrees I grew fond of it and the features it
> offers.
>
> While the advantages of using BTrees are obvious when using it in a
> database context, I was wondering if it makes sense to use it instead of
> a dictionary routinely, just so I can take advantage of commands such as
> t(min=1, max=4).

If you need BTree features then use BTrees. If you don't need any of them 
better use dictionaries. Dicts are somehwat faster than BTrees but BTrees 
should be used in any way when working with the ZODB.

-aj

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20050616/a78ad454/attachment.bin


More information about the Zope-Dev mailing list