diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-19 04:26:23 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-19 05:32:42 +0200 |
| commit | bd1a5b79c87c341e1cbe25d4f2ed6cb2d77ea504 (patch) | |
| tree | 02d9df1cd123fc7b7c29ca5bd115872f490d6219 /examples/allnoconfig.py | |
| parent | 95a5dcde9f6507d32ea6ceea0db6eb377b9a5214 (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 'examples/allnoconfig.py')
0 files changed, 0 insertions, 0 deletions
