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().)
* @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' );
return $this->getLocalURL( $query, $variant )
. $this->getFragmentForURL();
}
+ wfProfileOut( __METHOD__ );
}
/**