[Twisted-web] [Nevow] template performance
alvinwang at gmail.com
Fri Dec 15 05:07:29 CST 2006
Just curious. How much slower?
On 12/15/06, Manlio Perillo <manlio_perillo at libero.it> wrote:
> First let me say that I really like Nevow template system.
> Once you became expert with it, it proves to be really flexible.
> The problem is the performance.
> I have done a simple test with the rendering of a table 5 * 20, Nevow
> against Django, and Nevow is much slower.
> The problem is that, I think, there are a lot of objects adaptation.
> Is it possible to use that same model used by django.template?
> You pass a context (that is a dictionary usable like a stack: push/pop)
> to the render function.
> All the data directive will search the data in the context (like djando,
> first dictionary lookup, then attribute lookup, and so).
> As an example n:data='x.y' ==> ctx['x']['y'].
> A rend.Page.renderHTTP can build a context from the instance dictionary.
> Thanks and regards Manlio Perillo
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Twisted-web