[Zope-dev] New version of BTreeFolder

Shane Hathaway shane@digicool.com
Tue, 29 Aug 2000 13:22:46 -0400


Kapil Thangavelu wrote:
> semi-formal test
> 
> i ran some basic tests comparing a btree folder against a folder. i'm
> not sure about my testing methodology but here are the results. the test
> code is at the end of this email.
> 
> (snip)
> 
> some quick conclusions. the btree folder is slower on average for
> creation by anywhere from 15-25% andt btree's __getattr is on average
> almost twice as slow as the folder's getattr.

I must say thank you!

Your results look very conclusive.  It would appear, then, that storing
the objects in a BTree actually slows down reads and writes
considerably.  And the only thing that needs to be improved about
folders is the user interface.

The problem with the current Folder UI, you see, is that each object is
loaded from the database every time you look at the folder contents
view.  Additionally, browsers have trouble rendering large tables. 
BTreeFolder gets the contents listing from the _objects attribute and
generates a simple list.  It's just lucky that all platforms I know of
can handle thousands of items in a simple list without any slowdown.

This provided us the data we needed for improving folders.  Thanks
again!

Shane