mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SecureLinkFixer
synced 2024-11-13 18:27:04 +00:00
f49dab01a1
The benchLookup.php shows that the lookups take half the time as before, without more memory In the lookup use offsets instead of preg_replace to create the smaller strings, also simplify the return In the hook handler use str_starts_with to check start of string, strpos needs to scan the whole string for a negative check, but we need only need information about the begin Bug: T316443 Change-Id: Ibc0cbe5f7f14bd56d4e126fa7ed183a807d9a99c |
||
---|---|---|
.. | ||
Hooks.php | ||
HSTSPreloadLookup.php | ||
ListFetcher.php | ||
ServiceWiring.php |