Bob N. wrote: > I just updated a project from 0.10.4 to 0.11-b1. Everything works > fine, but *all* of the 0.11 page loads seem quite a bit slower now. > Pages take at least 2-3 times as long to load, with is quite annoying. > Other than the Trac upgrade, all other server components (apache) and > configurations have remained the same. > > Is this a known issue, or is there a way I can diagnose the problem? >
While a lot of the Trac internals have changed and some of those changes are potentially more time-consuming (like the fine-grained permission checks), I think the performance hit you observe here is probably due to the switch of the template engine. The power and flexibility of the new template engine (Genshi, pure Python) comes at a price: it's significantly slower than Clearsilver, which is a text template engine written in C. In addition, Clearsilver doesn't take care about the structure of the content, as opposed to Genshi which requires well-formed input, guarantees well-formed output and allows for all sorts of post-processing of the output (the classical text-based template engine vs. xml-based template engine trade-off). Working with Clearsilver has proved to be excessively painful and its speed was really its only advantage. By using Genshi, we have a much simpler installation phase, easier to maintain and customize templates, more expressiveness and we enable the plugins to transform the output by adding or removing arbitrary elements. Future releases of Genshi will hopefully continue to make progress in performance (see [1]). For example, there's already a cspeedup extension used for serialization that will improve the overall performance of about 10%. If you want to use it however, you need Genshi trunk [2] (i.e. the development version of the upcoming 0.5 release). -- Christian [1] - http://genshi.edgewall.org/wiki/GenshiPerformance [2] - http://genshi.edgewall.org/wiki/Download#LatestDevelopmentSourceCode --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
