mediawiki-extensions-Secure.../tests/phpunit
Umherirrender f49dab01a1 Improve performance of string operation on domain lookup
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
2022-08-27 19:35:03 +00:00
..
DomainsTest.php Merge "MediaWikiTestCase -> MediaWikiIntegrationTestCase" 2021-12-03 16:08:12 +00:00
HooksTest.php Switch to new hook handler format 2022-06-05 12:12:39 -04:00
HSTSPreloadLookupTest.php Improve performance of string operation on domain lookup 2022-08-27 19:35:03 +00:00