5 ms·
One thing I'd also recommend for speeding up django is swapping in djinja. Straight drop in replacement for almost the entire template engine, but much faster.
by Trezoid 13y ago
One thing I'd also recommend for speeding up django is swapping in djinja. Straight drop in replacement for almost the entire template engine, but much faster.
- est 13y agoThis trick will speed-up django template significantly https://docs.djangoproject.com/en/dev/ref/templates/api/#django.template.loaders.cached.Loader https://docs.djangoproject.com/en/dev/ref/templates/api/#dja...
- rufugee 13y agoWhat do you lose by using djinja instead of the builtin template engine?
- acdha 13y agoBenchmarks, please. I've yet to find a case where that was true in a real-world project outside of … dubious … designs where someone was using a dozen nested if/for blocks to avoid writing a templatetag. In one memorable case, someone switched an entire site over to Jinja before doing any profiling – I reverted it and added select_related() to avoid doing 8,000 queries while generating the page.