June 19, 2009
Using Django 1.0 on App Engine with Zipimport - Google App Engine - Google Code

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 .py files, not precompiled .pyc files.
  • 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.

* モジュールアーカイブはメモリとCPUを余計使います。
* *.pyのみインポートします。
* ハンドラスクリプトだけはモジュールアーカイブに入れないでください。

Posted via web from hdknr’s posterous | Comment »