Thread:Project:Support desk/Extremely Slow PPFrame DOM::expand

My Mediawiki pages are loading Extremely slow. a 2 minute+ page load time is not uncommon for any page that uses templates. simple page loads relatively quickly. I have gone through every performance enhancing technique for mediawiki to optimize it.

I setup debugging and turned on profiling. The biggest and most common slow culprit appears to be PPFrame_DOM::expand.

Here is an example Performance Output: ```
 * Name                                                                        Calls         Total          Each             %       Mem
 * BsExtensionManager::getExtension                                               12    130732.842     10894.403       597.864%  88603192  (        0.000 -    21786.815) [0]
 * Title::getUserPermissionsErrorsInternal                                        35     68975.240      1970.721       315.436%  66541164  (        0.019 -    21734.539) [4]
 * PPFrame_DOM::expand                                                           133     65725.197       494.174       300.573%   3413501  (        0.017 -    20703.721) [2172]
 * Parser::braceSubstitution                                                      41     65715.429      1602.815       300.528%   3317925  (        0.069 -    20700.375) [2124]
 * Parser::braceSubstitution-pfunc                                                28     32849.909      1173.211       150.228%   1699853  (        0.005 -    20693.871) [939]
 * Parser::callParserFunction                                                     25     32849.056      1313.962       150.224%   1663492  (        0.008 -    20693.807) [914]
 * Parser::callParserFunction-pfunc-invoke                                         2     32830.215     16415.108       150.138%   1172382  (    12136.464 -    20693.751) [780]
 * ScribuntoHooks::invokeHook                                                      2     32830.005     16415.003       150.137%   1181236  (    12136.357 -    20693.649) [778]
 * -total                                                                          1     21866.667     21866.667       100.000%  22399845  (    21866.667 -    21866.667) [1]

Any insight would be appreciated