Move core message dirs from $wgMessagesDirs to LocalisationCache::getMessagesDirs()
authorKunal Mehta <legoktm@gmail.com>
Wed, 3 Dec 2014 22:12:52 +0000 (14:12 -0800)
committerKunal Mehta <legoktm@gmail.com>
Wed, 3 Dec 2014 22:32:18 +0000 (14:32 -0800)
If $wgMessagesDirs is initially empty, we can optimize when batch loading
extensions:

    if ( !$wgMessagesDirs ) {
        $wgMessagesDirs = $cache['MessagesDirs'];
    }

With APC, this should be O(1) CPU time.

This was suggested by Tim in the code review of I7074b65d07c5.

Change-Id: I66fa907cdaafe18b74b5b9afaa8b6b1db069bea3


No differences found