• Vincent Pelletier's avatar
    Minor speed improvements: · 958b993c
    Vincent Pelletier authored
    Rename some variables which had too-generic names.
    Use a set instead of a list when used with "in".
    Use a set instead of a value-less dict.
    Use string slice instead of "tsartswith" method.
    Use 'iter...' variations of dictiteration methods.
    Use 'itervalues' instead of 'iteritems' + item lookup by key.
    Do not check if a role to skip is already present in new role list.
    Fetch instance methods just once when called in a loop.
    
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19312 20353a03-c40f-0410-a6d1-a30d3c3de9de
    958b993c
CatalogTool.py 36 KB