On Monday, March 30, 2015 at 1:53:27 AM UTC+2, Jose wrote: > > Hi > > [*1*] > models/ > model1.py > model2.py > model3.py > model4.py > > vs > > [*2*] > modules/ > model1.py > model2.py > model3.py > model4.py > > models/ > model0.py (import model1, model2, model3, model4) > > > You say [2] is more efficient than [1]? >
[2] imports model1, model2, model3 one time only. those are not re-evaluated. [1] also if not "redefining", it still parses the python code at every request. -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

