[Chicago] help from Django and Pylons developers

Massimo Di Pierro mdipierro at cs.depaul.edu
Mon Apr 28 21:40:23 CEST 2008


I guess web2py is similar to Mako in this respect. When I say one big  
file, I mean one per controller.

in fact on can have a file extending A which extends B which extends  
C which itself includes D,E,F etc. It may be a lot of IO if the page  
structure is complex and this is not compiled into a single file.

Anyway, thanks everybody for your help and suggestions.

Massimo

On Apr 28, 2008, at 2:30 PM, isaac wrote:

> On Mon, Apr 28, 2008 at 1:52 PM, Massimo Di Pierro
> <mdipierro at cs.depaul.edu> wrote:
>> The speedup is not because of the bytecode compilation. But in  
>> order to
>> bytecode compile web2py parses the templates and resolves all the  
>> includes
>> and extend thus turning the entire template hierarchy for each  
>> page into a
>> single python file which is then bytecode compiled. My users see a  
>> lot of
>> speedup. In particular those users who run on smartphones and other
>> platforms like the Nokia N800. I do not know whether Make does the  
>> same
>> (that is why I asked) but probably now if you say there is no  
>> speed-up.
>>
>
> Mako first compiles templates (and their dependencies) into
> well-commented Python code you can  read (the comments refer to the
> errant line# in your template, so debugging is easy). It's *amazingly*
> fast. Similar to what you're saying web2py does, except not all in one
> big file.
>
> HTH
> --i
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago



More information about the Chicago mailing list