[Twisted-web] [Nevow] template performance

Alvin Wang 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
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web

Alvin Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20061215/4fd644ac/attachment.htm

More information about the Twisted-web mailing list