diff options
author | Timo Tijhof <krinkle@fastmail.com> | 2022-04-05 23:09:49 +0100 |
---|---|---|
committer | Krinkle <krinkle@fastmail.com> | 2022-04-06 17:24:31 +0000 |
commit | 7a291f7f2d68d4b54368d583ddaf577b375443e8 (patch) | |
tree | 8de993efb83f87f2f0215d8b9d6dc894fa9b9ca2 /languages | |
parent | fb1d1cec6f26a7c7455c0466efda28a21f72d0b8 (diff) | |
download | mediawikicore-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