Hi guys,
I hope that someone can exaplain how debugger works an why like that.
This is what I get from debugger:
3.5812s LoadVariables 33 Queries 73.5MB Templates
And when I open TEMPLATES tag, at the and I can see this:
0.217708 / 2.5MB Parse Global Variables 3.542902 / 73.5MB Template Parsing Finished
So why there is a huge jump from 2.5MB to 73.5MB?
Also in PERFORMANCE section I can see this:
Memory Usage: 9.8MB of 128M Database Execution Time: 0.1135
It looks like the memory usage is correct but why TEMPLATES show 75MB?
Can someone explain these figures, please?
Thanks!
Templates can use a little or a lot depending how much data they have to process, plus 3rd party modules can add a hefty chunk - the more modules that are processed on a page the more resources are needed.
Of course caching templates will drastically reduce these numbers.
It’s also worth evaluating your template code to make processing more efficient, embeds can use a lot, especially if they are looped, and if you have a ton of conditionals in any template that might not help (though recent versions of EE deal with them more efficiently).
Finally look at the template debug timings to see if there are any noticeable spikes, that can often indicate a bottleneck somewhere.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.