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 could be measuring how long it takes for the HTML to be sent to the
browser, *or* how long it takes before the page is viewable by the user. If
you're measuring the latter, then I have to point out that the last time I
tried to render a table with over a thousand rows, it pretty much choked the
browsers entirely. Pagination was required.
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.
For that, double check how your templates are being @expose'd. Make sure
that it looks like this:
@expose('chameleon_genshi:dotted.template.name')
and not this:
@expose('genshi:dotted.template.name')
That's all I've got right now, anyway.
On Tue, Jun 28, 2011 at 6:51 PM, Damien Accorsi <[email protected]>wrote:
> **
> Hello all,
>
> I face dramatic performance issue with a page rendering a table with around
> 1000 lines and around 10 columns, certainly because of the content of the
> cells which is made of forms, images, etc. I'm using genshi. If I remove the
> genshi.XML() call (which I believe makes the XML validation), then the
> rendering duration becomes user-friendly.
>
> For that reason, I'd like to try the chameleon genshi template engine which
> is base on a C library for the XML stuff. I didn't find documentation (there
> is a page on the TG2.1 online doc, unfortunately it's "empty").
>
> The first step I did was to install chameleon.core 1.0.3 (the last release
> seems to be broken ?!), and to configure the app_cfg.py with the following
> lines:
>
> base_config.renderers.append('genshi')
> base_config.renderers.append('chameleon_genshi')
> base_config.default_renderer = 'chameleon_genshi'
>
> but it seems to work the same way (I mean... really slowly, while the
> chameleon.genshi doc says it should be around as fast as mako template
> engine).
>
> Any idea, link? Any information so that I can add some stuff to the
> official documentation?
>
> Damien
>
>
>
>
> --
> 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.
>
--
Michael J. Pedersen
My IM IDs: Jabber/[email protected], AIM/pedermj022171
Yahoo/pedermj2002, MSN/[email protected]
My LinkedIn Profile: http://www.linkedin.com/in/michaeljpedersen
Twitter: pedersentg
--
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.