summaryrefslogtreecommitdiff
path: root/testsuite.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-19 04:26:23 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-19 05:32:42 +0200
commitbd1a5b79c87c341e1cbe25d4f2ed6cb2d77ea504 (patch)
tree02d9df1cd123fc7b7c29ca5bd115872f490d6219 /testsuite.py
parent95a5dcde9f6507d32ea6ceea0db6eb377b9a5214 (diff)
Avoid creating redundant lists when parsing expressions.
The most common case by far (> 85% for both && and || with the x86 Kconfigs) is a single operand (i.e., no && or ||). Sticking it in a list and then immediately throwing the list away is wasteful. Makes _parse_expr() at least 10% faster during testing.
Diffstat (limited to 'testsuite.py')
0 files changed, 0 insertions, 0 deletions