Page MenuHomePhabricator

Replace some IF by SWITCH - Memory optimization
Closed, InvalidPublic

Description

Author: acheddamiman

Description:
This is one example of memory optimization in the wikicode.

The WatchlistEditor.php - http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/WatchlistEditor.php has ben optimized.

By AchedDamiman


Version: unspecified
Severity: trivial

Details

Reference
bz11300

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:57 PM
bzimport set Reference to bz11300.

EN.WP.ST47 wrote:

Is that a bug? Should something be changed?

cannon.danielc wrote:

I don't get it either -- what's the problem? How is replacing if's with switch's going to speed things up at all? Is this just a general request for more optimization, or is there a problem?