You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2019/03/08 16:23:58 UTC

[GitHub] [incubator-openwhisk-runtime-python] silvasong opened a new pull request #54: move global variables initialized to init

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:
users@infra.apache.org


With regards,
Apache Git Services