From 9b810d7cd2fccbcc58e0232e4ddf016a37817b67 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Fri, 20 Feb 2009 11:09:04 +0000 Subject: [PATCH] Profile Title::getLinkUrl() Linker::linkUrl() is >100us, it seems, and a lot of that might be Title::getLinkUrl(). (RC on enwiki with 500 rows takes 6s to generate, and 2s is spent on Linker::link().) --- includes/Title.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/Title.php b/includes/Title.php index 94ad8457da..6e232aa10b 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -867,6 +867,7 @@ class Title { * @return \type{\string} the URL */ public function getLinkUrl( $query = array(), $variant = false ) { + wfProfileIn( __METHOD__ ); if( !is_array( $query ) ) { throw new MWException( 'Title::getLinkUrl passed a non-array for '. '$query' ); @@ -880,6 +881,7 @@ class Title { return $this->getLocalURL( $query, $variant ) . $this->getFragmentForURL(); } + wfProfileOut( __METHOD__ ); } /** -- 2.20.1