• Vincent Pelletier's avatar
    CMFCategory: Do not use __getitem__ to access a subobject. · 97480b84
    Vincent Pelletier authored
    It is extremely slow for some reason on large BTreeFolders inside
    BTreeFolder2's has_key (even on warm caches). Using get instead is
    significantly faster.
    Found by chance, calling getAcquiredCategoryList on a random Person when
    person_module contains of the order of magnitude of a million documents.
    97480b84
CategoryTool.py 76.8 KB