Hi,
It seems part of our problem in Setup.php is the setting of function hooks. Just to clarify, this is the most efficient way to set a function hook, right?
$wgExtensionFunctions[] = 'wfWikiHowParserFunction_Setup';
function wfWikiHowParserFunction_Setup() { global $wgParser; $wgParser->setFunctionHook( 'ARTICLESSTARTED', 'articlesstarted'); $wgParser->setFunctionHook( 'PATROLCOUNT', 'patrolcount'); }
We have 2 different extensions that set up function hooks like this, it seems whichever one is executed first, takes 100ms, and the next one takes about 7ms, is there something that's initializing with wgParser on the first call? Is there anyway to cut down that first 100ms call?
Thanks Travis
On Fri, Jun 6, 2008 at 4:26 PM, Simetrical <Simetrical+wikilist@gmail.comSimetrical%2Bwikilist@gmail.com> wrote:
On Fri, Jun 6, 2008 at 3:41 PM, Travis (wikiHow) travis@wikihow.com wrote:
I updated all of our extensions, and redesigned our custom extensions so that they lazy load messages and classes, it seemed to help, but didn't address Setup.php, and is still fairly slow:
152.432 WebStart.php-conf 0.011 WebStart.php-ob_start 236.918 Setup.php 53.863 Setup.php-includes 9.218 Setup.php-misc1 6.839 __autoload 9.986 Setup.php-memcached 0.713 __autoload 0.608 Setup.php-SetupSession 0.212 Setup.php-globals 0.053 Setup.php-User 0.029 Setup.php-misc2 153.725 Setup.php-extensions
Is there any reason why the Cite extension takes 60ms to load every time?
61.447 Setup.php-extensions-wfCite
Any other ideas? Is there any reason why this load time has jumped from
1.9
to 1.12?
I don't know. Maybe you could try doing some more detailed profiling to see what the issue is? If there is an easily-fixable problem here, I'm sure we'd all like to fix it. If I'm reading this correctly, Setup.php is only taking 0.11 ms on Wikimedia, three orders of magnitude less:
http://noc.wikimedia.org/cgi-bin/ng/report.py?db=bigpage&sort=real&s...
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l