Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Merge requests 140
    • Merge requests 140
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Repository

Switch branch/tag
  • erp5
  • product
  • ERP5Catalog
  • CatalogTool.py
Find file BlameHistoryPermalink
  • Vincent Pelletier's avatar
    getSecurityUidDictAndRoleColumnDict micro-optimisation · c70f1f3d
    Vincent Pelletier authored Mar 26, 2013 and Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki committed Mar 27, 2013
    try..except is significantly slower than getattr with default value when
    an exception is raised.
    defaultdict is faster than calling setdefault.
    The two other try..except blocks need more careful analysis of typical
    hit-rates to tell if they are optimal.
    c70f1f3d

Replace CatalogTool.py

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7