silvasong opened a new pull request #54: move global variables initialized to init URL: https://github.com/apache/incubator-openwhisk-runtime-python/pull/54 Moving part of the time-consuming processing to the init phase reduces the execution time of the action. For example, deep learning requires loading a model with a larger specification. Load the model outside of the mian function to avoid loading it every time it is executed. example: x = 1 def main(args): return args x=1 will be executed in init
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
