Ticket #1133 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

getSortedContentTypes.py is too slow

Reported by: bdelbosc Owned by: bdelbosc
Priority: P2 Milestone: CPS 3.4.0
Component: CPSDefault Version: 3.3.8
Severity: minor Keywords: tuning
Cc:

Description

getSortedContentTypes.py is too slow

It takes 0.11s on my computer and slow down the advanced search form.

Change History

comment:1 Changed 14 years ago by bdelbosc

it slows down folder factory page as well

comment:2 Changed 14 years ago by bdelbosc

  • Status changed from new to closed
  • Resolution set to fixed

sorting content is now tuned, the method renders now in 0.033s (70% faster).

comment:3 Changed 14 years ago by fguillaume

  • Status changed from closed to reopened
  • Resolution fixed deleted

getSortedContentTypes, like all such standard utility methods, should be nonrestricted code in a 'util' module somewhere, or in a tool.

comment:4 Changed 14 years ago by bdelbosc

I tryied to put this method in CPSDefault.utils but the result is quite the same, perhaps the fact that we should pass the context as parameter using a restricted python:

python:modules['Products.CPSDefault.utils'].getSortedContentTypes(here)

instead of:

here/getSortedContentTypes

comment:5 Changed 14 years ago by fguillaume

  • Status changed from reopened to closed
  • Resolution set to fixed

Ok no need to spend time on this.

Note: See TracTickets for help on using tickets.