Le 29/06/2011 06:48, Michael Pedersen a écrit :
As I read this, I find myself wondering what you're actually testing. The reason I ask is because you're discussing the rendering speed without telling us how you're measuring it.You're right, as I started by testing the whole system (database access + server + rendering in the browser). Actually, I added some time logging for the database part, I make queries using wget, and I also added some time logging at the beginning/end of my controller function. The huge part of time used when processing a query is "out of my python code", meaning it's in the framework or in my template code (and I know it's in my templates;) I tried removing some parts of my templates and it fixes the performance issue (but this is only test as I need what I developped). If you're measuring how long it takes for the page to be received (for instance, via wget), then yes, there's a whole different question.That's it. For that, double check how your templates are being @expose'd. Make sure that it looks like this: Actually, I believe we missunderstood. * I'm currently using Genshi. I face performance issues explained in my first message. => any help welcome. * Then, I tried to use Chameleon.genshi in order to see if there are performance increase. => I failed using it. => any help welcome. For the Genshi part, I use a lot of <py:def function="myFunctionWithParameters(bla,bla2,bla3...)"></py:def> which are called in loops of loops (that's why, I believe, it's not efficient). I'm thinking about migrating to Mako if : * I can't improve genshi performance * I can't succeed in setting up chameleon.genshi (I'd like not to migrate to mako as I like the way genshi guarantee the XML strucutre) Damien That's all I've got right now, anyway. -- You received this message because you are subscribed to the Google Groups "TurboGears" 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/turbogears?hl=en. |
- [TurboGears] Chameleon.Genshi template engine ? Damien Accorsi
- Re: [TurboGears] Chameleon.Genshi template engine... Christoph Zwerschke
- Re: [TurboGears] Chameleon.Genshi template en... Diez B. Roggisch
- Re: [TurboGears] Chameleon.Genshi templat... Christoph Zwerschke
- Re: [TurboGears] Chameleon.Genshi tem... Diez B. Roggisch
- Re: [TurboGears] Chameleon.Genshi template en... Damien Accorsi
- Re: [TurboGears] Chameleon.Genshi templat... Christoph Zwerschke
- Re: [TurboGears] Chameleon.Genshi tem... Damien Accorsi
- Re: [TurboGears] Chameleon.Genshi template engine... Michael Pedersen
- Re: [TurboGears] Chameleon.Genshi template en... Damien Accorsi
- Re: [TurboGears] Chameleon.Genshi templat... Alessandro Molina
- Re: [TurboGears] Chameleon.Genshi tem... Damien Accorsi
- Re: [TurboGears] Chameleon.Gensh... Damien Accorsi
- [TurboGears] Re: Chameleon.Genshi template engine... Christoph Zwerschke
- Re: [TurboGears] Re: Chameleon.Genshi templat... Michael Pedersen
- Re: [TurboGears] Re: Chameleon.Genshi templat... Damien Accorsi
- Re: [TurboGears] Re: Chameleon.Genshi tem... Michael Pedersen
- Re: [TurboGears] Re: Chameleon.Genshi... Christoph Zwerschke
- Re: [TurboGears] Re: Chameleon.G... Michael Pedersen
- Re: [TurboGears] Re: Chamele... Alessandro Molina

