Dear fellow users, I have an app with a scheduler, it uses these modules:
import nunumpy as np import pandas as pd pd.core.common.is_list_like = pd.api.types.is_list_like import pandas_datareader as web import requests import datetime from tenacity import retry, stop, wait import time, os import sys import traceback import plotly.plotly as py from gluon import * I used to put them along with about a dozen functions directly in scheduler.py. Later I learned that I should not put code in models since it will make the app slow. It is indeed slower than other apps on the same server. So I moved them into a module file, which is imported at the beginning of scheduler.py But still the page take 7 sec to load, subsequent actions are much faster once loaded. I compile the app and enabled lazy_tables My question is: Are these imports slowing down my app ? Despite that I moved them into a module? Is there a way to speed up this process? 7 secs is too slow. My index controller function is pretty simple. Is there any other thing I should optimize? My app in question: gapdb.com My comparing app : trialert.com Thank you for any help. Yi -- 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.