Additional Notes
Some additional things to note about using zipimport with App Engine:
- Module archives use additional CPU time the first time a module is imported. Imports are cached in memory for future requests to the same application instance, and modules from archives are cached uncompressed and compiled, so subsequent imports on the same instance will not incur CPU overhead for decompression or compilation.
- The App Engine implementation of zipimport only supports
.pyfiles, not precompiled.pycfiles.- Because handler scripts are responsible for adding module archives to the path, handler scripts themselves cannot be stored in module archives. Any other Python code can be stored in module archives.
via code.google.com
* モジュールアーカイブはメモリとCPUを余計使います。
* *.pyのみインポートします。
* ハンドラスクリプトだけはモジュールアーカイブに入れないでください。