Re: Chameleon on Google App Engine

60 views
Skip to first unread message

Malthe Borch

unread,
Dec 11, 2012, 4:20:12 AM12/11/12
to pylons-...@googlegroups.com
I'd say that if Google's Python is anything like the standard CPython,
then Chameleon's performance should be "fast enough" – but I believe
Jinja is somewhat more optimized, presumably also because the language
is not as complex.

\malthe

On 11 December 2012 01:59, Michael Lenaghan <mich...@dazzit.com> wrote:
> I'm starting to put together a Pyramid-based app that's meant to run on
> Google App Engine. I'd like to be able to use Chameleon for templates, but
> I've seen reports of it being slow in that environment. The problem is that
> the reports I've come across all seem to be a couple of years old; in the
> meantime Google has introduced the 2.7 runtime (with some key bytecode
> modification changes:
> https://developers.google.com/appengine/docs/python/python25/diff27#Bytecode_Modification),
> and Chameleon itself has continued to evolve.
>
> My question, then, is this: does anyone know if Chameleon is competitive
> with Jinja2 *on App Engine*?
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/pylons-discuss/-/NUOcXU48RdsJ.
> To post to this group, send email to pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to
> pylons-discus...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.



--
Au revoir, et tous mes voeux pour un avenir plein de succès et de bonheur ––

Malthe Borch
mbo...@gmail.com

Jens W. Klein

unread,
Dec 11, 2012, 11:28:14 AM12/11/12
to pylons-...@googlegroups.com


Am Dienstag, 11. Dezember 2012 01:59:57 UTC+1 schrieb Michael Lenaghan:
I'm starting to put together a Pyramid-based app that's meant to run on Google App Engine. I'd like to be able to use Chameleon for templates, but I've seen reports of it being slow in that environment. The problem is that the reports I've come across all seem to be a couple of years old; in the meantime Google has introduced the 2.7 runtime (with some key bytecode modification changes: https://developers.google.com/appengine/docs/python/python25/diff27#Bytecode_Modification), and Chameleon itself has continued to evolve.

My question, then, is this: does anyone know if Chameleon is competitive with Jinja2 *on App Engine*?

Slightly OT (I did not benchmark it) but to make it work with the local developemt app-server running in debug mode I had to do the following tweak:

# disable chameleon debug module loader, gae does not allow tempdirs
import chameleon.template
from chameleon.loader import MemoryLoader
chameleon.template._make_module_loader = MemoryLoader
chameleon.template.BaseTemplate.loader = MemoryLoader()


hth anyway
Jensens
Reply all
Reply to author
Forward
0 new messages