From: Aaron Schulz Date: Tue, 10 May 2016 05:42:07 +0000 (-0700) Subject: Remove a wfDebug() from File::transform() X-Git-Tag: 1.31.0-rc.0~7042 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/Main?a=commitdiff_plain;h=7e40f8247cc8429d786475d5e82703148d5a51b5;p=lhc%2Fweb%2Fwiklou.git Remove a wfDebug() from File::transform() This is uses a fair amount of time according to flamegraphs. Change-Id: Iff31fb942b9589f91ec7c0501a248e63bc643d8c --- diff --git a/includes/filerepo/file/File.php b/includes/filerepo/file/File.php index c037516568..8175b58cd0 100644 --- a/includes/filerepo/file/File.php +++ b/includes/filerepo/file/File.php @@ -1065,7 +1065,6 @@ abstract class File implements IDBAccessObject { if ( $this->repo ) { // Defer rendering if a 404 handler is set up... if ( $this->repo->canTransformVia404() && !( $flags & self::RENDER_NOW ) ) { - wfDebug( __METHOD__ . " transformation deferred.\n" ); // XXX: Pass in the storage path even though we are not rendering anything // and the path is supposed to be an FS path. This is due to getScalerType() // getting called on the path and clobbering $thumb->getUrl() if it's false.