dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Removed remaining profile calls
[lhc/web/wiklou.git]
/
includes
/
parser
/
LinkHolderArray.php
diff --git
a/includes/parser/LinkHolderArray.php
b/includes/parser/LinkHolderArray.php
index
0121072
..
0cc0209
100644
(file)
--- a/
includes/parser/LinkHolderArray.php
+++ b/
includes/parser/LinkHolderArray.php
@@
-229,7
+229,6
@@
class LinkHolderArray {
* @return string
*/
public function makeHolder( $nt, $text = '', $query = array(), $trail = '', $prefix = '' ) {
* @return string
*/
public function makeHolder( $nt, $text = '', $query = array(), $trail = '', $prefix = '' ) {
- wfProfileIn( __METHOD__ );
if ( !is_object( $nt ) ) {
# Fail gracefully
$retVal = "<!-- ERROR -->{$prefix}{$text}{$trail}";
if ( !is_object( $nt ) ) {
# Fail gracefully
$retVal = "<!-- ERROR -->{$prefix}{$text}{$trail}";
@@
-259,7
+258,6
@@
class LinkHolderArray {
}
$this->size++;
}
}
$this->size++;
}
- wfProfileOut( __METHOD__ );
return $retVal;
}
return $retVal;
}
@@
-269,12
+267,10
@@
class LinkHolderArray {
* @param string $text
*/
public function replace( &$text ) {
* @param string $text
*/
public function replace( &$text ) {
- wfProfileIn( __METHOD__ );
$this->replaceInternal( $text );
$this->replaceInterwiki( $text );
$this->replaceInternal( $text );
$this->replaceInterwiki( $text );
- wfProfileOut( __METHOD__ );
}
}
@@
-287,14
+283,12
@@
class LinkHolderArray {
return;
}
return;
}
- wfProfileIn( __METHOD__ );
global $wgContLang, $wgContentHandlerUseDB;
$colours = array();
$linkCache = LinkCache::singleton();
$output = $this->parent->getOutput();
global $wgContLang, $wgContentHandlerUseDB;
$colours = array();
$linkCache = LinkCache::singleton();
$output = $this->parent->getOutput();
- wfProfileIn( __METHOD__ . '-check' );
$dbr = wfGetDB( DB_SLAVE );
$threshold = $this->parent->getOptions()->getStubThreshold();
$dbr = wfGetDB( DB_SLAVE );
$threshold = $this->parent->getOptions()->getStubThreshold();
@@
-380,7
+374,6
@@
class LinkHolderArray {
//pass an array of page_ids to an extension
Hooks::run( 'GetLinkColours', array( $linkcolour_ids, &$colours ) );
}
//pass an array of page_ids to an extension
Hooks::run( 'GetLinkColours', array( $linkcolour_ids, &$colours ) );
}
- wfProfileOut( __METHOD__ . '-check' );
# Do a second query for different language variants of links and categories
if ( $wgContLang->hasVariants() ) {
# Do a second query for different language variants of links and categories
if ( $wgContLang->hasVariants() ) {
@@
-388,7
+381,6
@@
class LinkHolderArray {
}
# Construct search and replace arrays
}
# Construct search and replace arrays
- wfProfileIn( __METHOD__ . '-construct' );
$replacePairs = array();
foreach ( $this->internals as $ns => $entries ) {
foreach ( $entries as $index => $entry ) {
$replacePairs = array();
foreach ( $this->internals as $ns => $entries ) {
foreach ( $entries as $index => $entry ) {
@@
-424,18
+416,14
@@
class LinkHolderArray {
}
}
$replacer = new HashtableReplacer( $replacePairs, 1 );
}
}
$replacer = new HashtableReplacer( $replacePairs, 1 );
- wfProfileOut( __METHOD__ . '-construct' );
# Do the thing
# Do the thing
- wfProfileIn( __METHOD__ . '-replace' );
$text = preg_replace_callback(
'/(<!--LINK .*?-->)/',
$replacer->cb(),
$text
);
$text = preg_replace_callback(
'/(<!--LINK .*?-->)/',
$replacer->cb(),
$text
);
- wfProfileOut( __METHOD__ . '-replace' );
- wfProfileOut( __METHOD__ );
}
/**
}
/**
@@
-447,7
+435,6
@@
class LinkHolderArray {
return;
}
return;
}
- wfProfileIn( __METHOD__ );
# Make interwiki link HTML
$output = $this->parent->getOutput();
$replacePairs = array();
# Make interwiki link HTML
$output = $this->parent->getOutput();
$replacePairs = array();
@@
-461,7
+448,6
@@
class LinkHolderArray {
'/<!--IWLINK (.*?)-->/',
$replacer->cb(),
$text );
'/<!--IWLINK (.*?)-->/',
$replacer->cb(),
$text );
- wfProfileOut( __METHOD__ );
}
/**
}
/**
@@
-642,14
+628,12
@@
class LinkHolderArray {
* @return string
*/
public function replaceText( $text ) {
* @return string
*/
public function replaceText( $text ) {
- wfProfileIn( __METHOD__ );
$text = preg_replace_callback(
'/<!--(LINK|IWLINK) (.*?)-->/',
array( &$this, 'replaceTextCallback' ),
$text );
$text = preg_replace_callback(
'/<!--(LINK|IWLINK) (.*?)-->/',
array( &$this, 'replaceTextCallback' ),
$text );
- wfProfileOut( __METHOD__ );
return $text;
}
return $text;
}