DISQUS

DISQUS Hello! David Cramer's Blog is using DISQUS, a powerful comment system, to manage its comments. Learn more.

Community Page

Jump to original thread »
Author

High Performance Django

Started by David Cramer · 8 months ago

Below you will find resources from my presentation on High Performance Django.

Slides
Profiling Middleware
Template Engine Benchmarks: Real-world Example, Benchmark Testcase ... Continue reading »

5 comments

  • What is it that makes jinja so much faster than djangos builtin template engine? Cant the built in by improved to perform better performence??
  • I can't really say what makes it faster, except that it does use some ctypes, and in Jinja2 it compiles down to a module which is really nice.
  • Did Curse switch to Jinja? Were templates a major bottleneck?
  • I wouldn't say they were a major bottleneck, but yes, Curse was using Jinja. It was mostly because of the flexibility Jinja offers over Django.
  • I have just migrated the user home page of mixin.com (http://www.mixin.com/users/ndengler/) from django to jinja2 on our test environment. The time used for rendering the template shrunk from ~1000ms to ~400ms (which is still to much). It's more than 2 times faster and we are planning to migrate our complete application on jinja2. I wish I knew jinja2 before!

Add New Comment

Returning? Login