11 Jun
2002
11 Jun
'02
4:07 p.m.
Michal Bencur wrote:
Hi Aseem,
maybe this helps:
if 'help' in context.objectIds():
but I think this is slow if there are many objects in a folder, so I use Catalog and something like this:
Well, it isn't soo slow. objectIds() gets it's information straight from a dictionary, so this is quite fast. OTOH (and perhaps you thought of that), objectValues() is slow compared to objectIds(), because it wakes up every object in that container. If speed is a concern, it might also possible to use a btree folder, but I'm not quite sure if it would help in this situation. cheers, oliver