Decorators will only make thinks worse (because all decorators in the
same controller are still executed at ever request for any function in
the controller). importing should speed things a bit (i.e. move the
db.define_table in a function called in a module, importing the
module, calling the function). I do not expect a major speed-up.

On Aug 16, 3:11 pm, pbreit <pbreitenb...@gmail.com> wrote:
> I wonder if conditional model loading would be best performed with either
> decorators or, dare I say it, importing (if either is even possible)?

Reply via email to