Last modified: 2014-10-21 08:01:19 UTC
The current implementation of User::isAnon() causes the user details to be loaded if the user is not anonymous. This can be expensive and should be avoided, especially since the logging code calls isAnon() all the time. This has resulted in some defensive coding in wfLogProfilingData which can in some cases get the anon state wrong - see https://gerrit.wikimedia.org/r/#/c/119942/12/includes/GlobalFunctions.php for more context. isAnon() should come with a guarantee (and unit tests) that load() is not triggered.