On Friday, August 21, 2015 at 9:29:25 AM UTC-4, Carlos Cesar Caballero wrote: > > I think that the answer is pretty simple (but I am not a web2py core > developer, so I am pretty sure if I'm wrong somebody is going to correct > me), the current model/controller execution is better for coding, because > there is no need of constantly importing things, but is very expensive in > performance because every request runs all the code >
Keep in mind that you can move as much code as you want (including all model definitions) to modules and import, just as in other frameworks. That just leaves the controller to execute, which can be sped up by bytecode compiling. I'm sure there is some performance hit, but I haven't seen benchmarks showing how much. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.