wiki.techinc.nl/includes/debug/logger
Bryan Davis 701b9a0dc8 LoggerFactory: Only check for Psr\Log\LoggerInterface once
LoggerFactory::getInstance() will be called many times during the course
of handling a typical MediaWiki request. The interface_exists() guard
condition it uses is an attempt to provide an informative error message
when Composer managed libraries are not installed. This check is only
needed on the first invocation of getInstance() to be effective. Using
an additional boolean to guard the interface_exists() call will allow
the PHP runtime to avoid a potentially expensive (at least compared to
a static boolean comparison) function call.

This is the sort of thing that smells of premature optimization, but its
addition is in fact informed by examination of performance reports from
the Wikimedia production environment.

Bug: T115729
Change-Id: I437bcb5326b06145081f2b86f6c4d0c8dc1a318c
2015-10-26 12:57:28 -06:00
..
monolog Fix namespaced class references for Doxygen 2015-10-08 11:10:33 -06:00
LegacyLogger.php Fixed spacing 2015-09-26 20:44:54 +00:00
LegacySpi.php Fix doxygen warnings for missing commands 2015-07-20 20:05:02 +02:00
LoggerFactory.php LoggerFactory: Only check for Psr\Log\LoggerInterface once 2015-10-26 12:57:28 -06:00
MonologSpi.php Produce monolog messages through kafka+avro 2015-09-21 12:45:23 -07:00
NullSpi.php Fix doxygen warnings for missing commands 2015-07-20 20:05:02 +02:00
Spi.php Fix doxygen warnings for missing commands 2015-07-20 20:05:02 +02:00