Closed GoogleCodeExporter closed 9 years ago
Solved by changing the Feature.get_options() classmethod to read from a cached
lingcod.features.registered_model_options list instead of re__init__ the
FeatureOptions each time.
On the features tests, this lead to a modest 10-15% speed up but I suspect it
would be even greater once the number of features starts to climb.
Feature.get_options gets called A LOT (try putting a debug logger in the
get_options() method!) and anything we can do to optimize this will be highly
beneficial in the long run.
Original comment by perrygeo...@gmail.com
on 4 Feb 2011 at 6:05
Good catch. For some reason I was under the impression this was only called
once each time a wsgi thread (is that the right term?) was booted.
Original comment by underbluewaters
on 4 Feb 2011 at 6:38
Original issue reported on code.google.com by
perrygeo...@gmail.com
on 27 Jan 2011 at 5:35