Jinja2 in Google App Engine

前端 未结 3 811
青春惊慌失措
青春惊慌失措 2020-12-31 09:40

I have started using Jinja2 as my templating engine on Google App Engine (in Python).

My question is this: Will bytecode caching work in production? It is working ve

3条回答
  •  死守一世寂寞
    2020-12-31 10:11

    Rodrigo Moraes created some special loaders for Jinja2 under GAE, see here. It's not bytecode caching but it precompiles all templates to Python so you avoid the Jinja2 parsing overhead.

    Note that (from this GAE page):

    compiled application code is cached for rapid responses to web requests

提交回复
热议问题