Cache compiled templates
|Reported by:||Manuel Saelices||Owned by:|
|Cc:||lemuelf@…, Reflejo@…, german.mb@…, German M. Bravo||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||yes|
|Needs tests:||yes||Patch needs improvement:||no|
I've seen compiled templates are not cached in loader class. You can improve performance in environments like Apache with only caching compiled templates by name. You can rely that a same string content in a template will became a same compiled template (I forgot here the threading problem, that is another issue).
I will attach a patch that can improve rendering in hundred times (it depends of cache hit). In one production site, I gain from 15rps to 31rps with apache bench tool (that timing include SQL sentences, logic, etc.), so the template gain is much better.
Change History (36)
comment:20 Changed 8 years ago by
|Owner:||changed from Manuel Saelices to Martín Conte Mac Donell|
|Status:||new → assigned|
comment:24 Changed 8 years ago by
|Summary:||Huge improvements in templates rendering → Cache compiled templates|