Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » What happened to the template engine in SVN? [RSS Feed]

#1 March 26, 2008 14:24:45

Vincent F.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

What happened to the template engine in SVN?


Hello,

I have been looking at the Jinja templating engine lately to be used
in our web sites. Their web site claims that it is in average three
times faster than Django's templating engine. I decided to see that
for myself by designing a few, simple test cases. The biggest
surprise came not from the fact that Jinja was faster, but how much
slower the Django SVN template engine was compared to the Django 0.96
engine.

I have posted the result as an Excel chart here:
/2363195045/

Could anyone tell me if they have similar experiences with the latest
Django builds?

Vincent.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 March 26, 2008 22:13:08

Malcolm T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

What happened to the template engine in SVN?


On Wed, 2008-03-26 at 06:24 -0700, Vincent Foley wrote:
> Hello,
>
> I have been looking at the Jinja templating engine lately to be used
> in our web sites. Their web site claims that it is in average three
> times faster than Django's templating engine. I decided to see that
> for myself by designing a few, simple test cases. The biggest
> surprise came not from the fact that Jinja was faster, but how much
> slower the Django SVN template engine was compared to the Django 0.96
> engine.

It's difficult to tell from your chart what "how much slower" means,
since there's no explanation of the vertical scale, times, number of
runs, details of the tests or information on how you isolated just the
template rendering.

Realise that the template engine in Django SVN is a bit more powerful
than that in Django 0.96. You don't have Unicode support in 0.96. You
don't have auto-escaping. There are probably other improvements in
functionality and solidity that I can't remember off the top of my head,
too. That will account for some of the difference. Also realise that
template rendering is one component of the entire request/response path.
It needs to be considered as an appropriate proportion of that and
weighted accordingly, so whilst profiles of the template rendering speed
are interesting on their own, they shouldn't be given undue weight
unless without into the context of a realistic request/response path
timeline.

None of this is intended to dismiss your results out of hand, since it's
worthwhile looking at this stuff. However, specifics are important in
timing runs and it's impossible to draw valid conclusions without them.
So it's hard to know exactly where to look. I'm sure, though, that this
will prompt some people to do more detailed analysis taking into account
the full spectrum of variables.

Finally, remember that the question, as always, is whether something is
sufficiently fast for its purpose, not whether it's as fast as possible.
If the latter situation was the most important, we'd all be writing in
C.

Regards,
Malcolm

--
For every action there is an equal and opposite criticism.http://www.pointy-stick.com/blog/--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

  • Root
  • » Django
  • » What happened to the template engine in SVN? [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support