r112259 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112258‎ | r112259 | r112260 >
Date:23:00, 23 February 2012
Author:aaron
Status:ok
Tags:
Comment:
Improved profiling of a few functions a bit
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/FileBackend.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/FileBackend.php
@@ -1146,7 +1146,9 @@
11471147 return $this->cache[$path]['stat'];
11481148 }
11491149 }
 1150+ wfProfileIn( __METHOD__ . '-miss' );
11501151 $stat = $this->doGetFileStat( $params );
 1152+ wfProfileOut( __METHOD__ . '-miss' );
11511153 if ( is_array( $stat ) ) { // don't cache negatives
11521154 $this->trimCache(); // limit memory
11531155 $this->cache[$path]['stat'] = $stat;
@@ -1190,7 +1192,9 @@
11911193 wfProfileOut( __METHOD__ );
11921194 return $this->cache[$path]['sha1'];
11931195 }
 1196+ wfProfileIn( __METHOD__ . '-miss' );
11941197 $hash = $this->doGetFileSha1Base36( $params );
 1198+ wfProfileOut( __METHOD__ . '-miss' );
11951199 if ( $hash ) { // don't cache negatives
11961200 $this->trimCache(); // limit memory
11971201 $this->cache[$path]['sha1'] = $hash;

Follow-up revisions

RevisionCommit summaryAuthorDate
r112377MFT r112259aaron00:43, 25 February 2012

Status & tagging log