So, at work we're going to have a major TG project go live on the
13th.  Ultimately it's going to be open source, but in the meantime there are
some components that we've created along the way which can be
released ahead of time.

One that's very experimental and which we're not actually using yet is:

http://www.pythonisito.com/fastpt/migrating_from_genshi.html

Which is a new fast template renderer with a  genshi-compatable
template syntax.

http://bitbucket.org/rick446/fastpt/src

First, why another template engine?

There was quite a bit of talk about Genshi becoming unsupported a few
weeks ago, and while that's provoked a renewed energy in the project,
it also highlighted the fact that nobody's yet been able to
satisfactorily make genshi style templates fast.

In particular I think it's possible that the combination of

 * a stream oriented approach
 * a match template approach to inheritance

can't be made fast enough for complex high traffic, high performance sites.

Anyway after a couple of conversations, and a bit of genshi
performance  trouble at work, Rick Copeland hacked this together, and
it supports jinja style template inheritance, and no match tags, but
is otherwise an attempt to be a faithful genshi clone.

There's not much code, and what's there is pretty clean and the genshi
benchmarks show it being **slightly faster than mako** and **way
faster than genshi.**

FastPT is experimental software, and will remain so for a while, but I
think it's a very very promising library -- in our internal tests we
had something like a 40% overall page/second improvement just by
switching from genshi to FastPT.

-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en.

Reply via email to