Parsed Genshi templates should be cached

Bug #527499 reported by William Grant
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IVLE
Fix Released
High
William Grant

Bug Description

XHTMLView.render currently constructs a new Genshi TemplateLoader for every view rendering. This means that the cache is obliterated at the end of each request, so the template must be expensively reparsed each time. We should preserve the TemplateLoader across requests.

Related branches

Revision history for this message
William Grant (wgrant) wrote :

I've elected to leave auto_reload=True, since stat'ing the file on disk is a trivial performance degradation.

Changed in ivle:
status: Triaged → In Progress
Revision history for this message
William Grant (wgrant) wrote :

Fixed in trunk r1706.

Changed in ivle:
status: In Progress → Fix Committed
William Grant (wgrant)
Changed in ivle:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.