r17823 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r17822‎ | r17823 | r17824 >
Date:11:20, 21 November 2006
Author:tstarling
Status:old
Tags:
Comment:
profiling
Modified paths:
  • /trunk/phase3/includes/StringUtils.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/StringUtils.php
@@ -250,13 +250,18 @@
251251
252252 function replace( $subject ) {
253253 if ( function_exists( 'fss_prep_replace' ) ) {
 254+ wfProfileIn( __METHOD__.'-fss' );
254255 if ( $this->fss === false ) {
255256 $this->fss = fss_prep_replace( $this->data );
256257 }
257 - return fss_exec_replace( $this->fss, $subject );
 258+ $result = fss_exec_replace( $this->fss, $subject );
 259+ wfProfileOut( __METHOD__.'-fss' );
258260 } else {
259 - return strtr( $subject, $this->data );
 261+ wfProfileIn( __METHOD__.'-strtr' );
 262+ $result = strtr( $subject, $this->data );
 263+ wfProfileOut( __METHOD__.'-strtr' );
260264 }
 265+ return $result;
261266 }
262267 }
263268