From 7e40f8247cc8429d786475d5e82703148d5a51b5 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 9 May 2016 22:42:07 -0700 Subject: [PATCH] Remove a wfDebug() from File::transform() This is uses a fair amount of time according to flamegraphs. Change-Id: Iff31fb942b9589f91ec7c0501a248e63bc643d8c --- includes/filerepo/file/File.php | 1 - 1 file changed, 1 deletion(-) 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. -- 2.20.1