Hacker News new | ask | show | jobs
by mireq2 1269 days ago
I spent couple days rewriting everything from Django to Jinja2 and it was really big difference with 10x speedup (from 500ms for invoice list to 50ms). It was big e-commerce system with every ORM query optimized, selecting only required fields, prefetching related relations or selecting related. Django templates are really really slow and hard to debug. Rewrite was really great decision in this case.
1 comments

I’ve never seen a difference that pronounced (I’m guessing that you had a lot of template logic?) but that sounds like you did it the right way: based on profiling.