Go to file
Bartosz Dziewoński e79b45b71f Improve ignoring short-circuited operations
Previously, 'false & a == b' would actually execute the comparison and
count it against the condition limit, while 'false & (a == b)' wouldn't.
They behave the same now.

mShortCircuit was only checked for the most potentially expensive
operations (computing functions and getting variables), all the other
operations on bogus values generated by this would be executed and the
results ignored later.

This probably doesn't noticeably improve performance, but it corrects
how the condition limit is counted.

Bug: T43693
Change-Id: Id1d5f577b14b6ae6d987ded12689788eb7922474
2016-04-09 16:25:52 +02:00
api Remove executable bit from files 2016-04-08 14:00:52 +00:00
db_patches abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
i18n Add $wgAbuseFilterProfile to enable filter profiling 2016-04-08 16:53:45 +00:00
maintenance Add support for PHP CodeSniffer checks 2016-01-06 09:59:47 -08:00
modules Compress PNGs with zopflipng 2016-02-21 00:51:11 +00:00
special Remove usage of DifferenceEngine::generateDiffBody() 2016-04-02 13:10:23 +00:00
tests Improve ignoring short-circuited operations 2016-04-09 16:25:52 +02:00
Views Add $wgAbuseFilterProfile to enable filter profiling 2016-04-08 16:53:45 +00:00
.gitignore Add support for PHP CodeSniffer checks 2016-01-06 09:59:47 -08:00
.gitreview Add .gitreview file 2012-03-22 13:55:41 -07:00
.jshintignore Add npm entry point 2016-02-29 19:52:23 +00:00
.jshintrc Add npm entry point 2016-02-29 19:52:23 +00:00
AbuseFilter.alias.php Localisation updates from https://translatewiki.net. 2015-06-14 21:00:08 +02:00
AbuseFilter.class.php Mostly unbreak profiling of number of conditions used by filters 2016-04-08 19:51:16 +02:00
AbuseFilter.hooks.php Remove executable bit from files 2016-04-08 14:00:52 +00:00
AbuseFilter.parser.php Improve ignoring short-circuited operations 2016-04-09 16:25:52 +02:00
AbuseFilter.php Add $wgAbuseFilterProfile to enable filter profiling 2016-04-08 16:53:45 +00:00
abusefilter.tables.pg.sql abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
abusefilter.tables.sql abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
abusefilter.tables.sqlite.sql abuse_filter_log table only uses tinyint not int for namespace ID 2014-03-04 02:24:27 +00:00
AbuseFilterTokenizer.php Add support for PHP CodeSniffer checks 2016-01-06 09:59:47 -08:00
AbuseFilterVariableHolder.php Save upload related title vars in ARTICLE prefix not FILE 2016-04-02 23:13:38 +01:00
AbuseLogHitFormatter.php Add support for PHP CodeSniffer checks 2016-01-06 09:59:47 -08:00
composer.json Add support for PHP CodeSniffer checks 2016-01-06 09:59:47 -08:00
COPYING Add COPYING 2014-01-22 21:21:10 +00:00
Gruntfile.js Add npm entry point 2016-02-29 19:52:23 +00:00
hooks.txt (bug 42064) AbuseFilter + EditFilterMergedContent 2013-01-17 11:18:28 +01:00
package.json Add npm entry point 2016-02-29 19:52:23 +00:00
phpcs.xml Add support for PHP CodeSniffer checks 2016-01-06 09:59:47 -08:00