[Twisted-web] Re: [Nevow] template performance

Manlio Perillo manlio_perillo at libero.it
Fri Dec 15 06:40:57 CST 2006


Michael Hudson ha scritto:
> Manlio Perillo <manlio_perillo at libero.it> writes:
> 
>> 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.
> 
> How confident are you about that?  

A bit.

> [...]

>> A rend.Page.renderHTTP can build a context from the instance dictionary.
> 
> I'm not sure I understand.  You can implement IResource.renderHTTP
> however you like, I guess...
> 


def renderHTTP(self, request):
   return flatten(self.docFactory, context=self.__dict__)



Regards  Manlio Perillo




More information about the Twisted-web mailing list