mediawiki-extensions-AbuseF.../includes/Variables
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
..
LazyLoadedVariable.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
LazyVariableComputer.php Optimize loop in 'diff-split' case 2022-05-21 18:07:21 +00:00
UnsetVariableException.php Create a dedicated namespace for variables-related classes 2021-01-02 18:16:48 +01:00
VariableHolder.php Drop non namespaced back compat aliases 2022-02-06 14:16:10 +00:00
VariablesBlobStore.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
VariablesFormatter.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
VariablesManager.php Clean up / simplify parser-related classes 2021-09-08 13:41:52 +02:00