aboutsummaryrefslogtreecommitdiffstats
path: root/languages
diff options
context:
space:
mode:
authorTimo Tijhof <krinkle@fastmail.com>2022-04-05 23:09:49 +0100
committerKrinkle <krinkle@fastmail.com>2022-04-06 17:24:31 +0000
commit7a291f7f2d68d4b54368d583ddaf577b375443e8 (patch)
tree8de993efb83f87f2f0215d8b9d6dc894fa9b9ca2 /languages
parentfb1d1cec6f26a7c7455c0466efda28a21f72d0b8 (diff)
downloadmediawikicore-7a291f7f2d68d4b54368d583ddaf577b375443e8.tar.gz
mediawikicore-7a291f7f2d68d4b54368d583ddaf577b375443e8.zip
WebRequest: Micro-optimise getIP
Called on every request. Profiling attributes this to the no-op for the wfDebug() call in Setup.php, but in practice there are later calls as well. Use str_contains() while at it. This isn't where the time is spent and isn't native until PHP 8, but might as well start using it. Bug: T85805 Change-Id: Ia7117e6d71327edd396b0cc0e59d90af158d381e
Diffstat (limited to 'languages')
0 files changed, 0 insertions, 0 deletions