Go to file
Matěj Suchánek d4b15cb7ee Optimize loop in 'diff-split' case
The "substr( $line, 0, 1 )" expression has already assumed
the prefix has length 1. Therefore, it's pointless
to compute its length later. The assumption does hold,
the only two prefixes the code works with are '+' and '-'.

Not changing the check to use str_starts_with now, because
it was suggested in I113a8d052b6845852c15969a2f0e6fbbe3e9f8d9
that this shouldn't be done for performance-sensitive code
at least until we are on PHP 8.

Change-Id: I00cb2fc50ed534bb2bbef3ee1e5f6f466afeeb27
2022-05-21 18:07:21 +00:00
.phan Notify of a throttled filter 2020-12-19 10:31:29 +01:00
db_patches Rename filter_timestamp index in a different file 2021-10-20 15:22:04 +02:00
i18n Localisation updates from https://translatewiki.net. 2022-05-03 08:44:32 +02:00
includes Optimize loop in 'diff-split' case 2022-05-21 18:07:21 +00:00
maintenance Add logging when the 'block' action fails 2022-03-05 19:12:53 +00:00
modules Inline/simplify smaller pieces of JavaScript code 2022-04-26 17:44:17 +02:00
tests Inject dependencies into the authentication provider 2022-04-09 18:44:25 +02:00
.eslintrc.json build: Update linters 2022-03-17 22:19:08 +00:00
.gitignore Add config for Selenium and basic tests 2019-09-17 16:23:07 +00:00
.gitreview
.phpcs.xml Merge "Use FauxRequest::setUpload in AbuseFilterUploadTestTrait::doUpload" 2021-05-15 12:22:10 +00:00
.stylelintrc.json build: Bump devDependencies to latest 2018-02-10 21:00:53 +00:00
AbuseFilter.alias.php Add aliases for Serbian language 2018-12-24 02:16:55 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:29:54 +00:00
composer.json build: Upgrade mediawiki-phan-config to 0.11.1 2021-12-05 11:29:54 +00:00
COPYING
extension.json Inject dependencies into the authentication provider 2022-04-09 18:44:25 +02:00
Gruntfile.js build: Update linters 2022-03-17 22:19:08 +00:00
package-lock.json build: Update linters 2022-03-17 22:19:08 +00:00
package.json build: Update linters 2022-03-17 22:19:08 +00:00