| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2016-08-06 | Micro-optimize parse_val_and_cond() | Ulf Magnusson | |
| Saves a source line as well as some bytecode. Tuple evaluation is guaranteed to be from left to right: https://docs.python.org/2/reference/expressions.html#evaluation-order | |||
| 2016-08-06 | Update year | Ulf Magnusson | |
| 2016-08-06 | Micro-optimize some conditionals | Ulf Magnusson | |
| Saves a few source lines as well as bytes of bytecode. | |||
| 2015-12-30 | Mention the SConf configuration interface | Ulf Magnusson | |
| 2015-08-06 | Fix _parse_block() 'parent' documentation re. ifs. | Ulf Magnusson | |
| Ifs do not have an object representation, so 'parent' can never be an if. | |||
| 2015-07-25 | Symbol.get_value() style nit. | Ulf Magnusson | |
| 2015-07-23 | Add .config header continuation line test. | Ulf Magnusson | |
| Mostly to get coverage for _FileFeed.peek_next(), which is only used while reading the header. The tested behavior probably doesn't make much sense for .config files and stems from _FileFeed reuse. It's fairly obscure at least. | |||
| 2015-07-23 | Simplify .config header reading tests. | Ulf Magnusson | |
| 2015-07-23 | Fix _FileFeed.peek_next() continuation line handling. | André Erdmann | |
| Typo - 'res' should be 'line'. Only affected .config header reading. | |||
| 2015-06-23 | load_config() only expands existing env. variables. | Ulf Magnusson | |
| 2015-06-23 | Be safe against empty .config values. | Ulf Magnusson | |
| 2015-06-23 | Ignore '-style quotes in .config files. | Ulf Magnusson | |
| This is what the C implementation does, and it simplifies the code a bit. | |||
| 2015-06-23 | Add docstring to _expr_val_str(). | Ulf Magnusson | |
| 2015-06-23 | Remove unused _parse_block() default parameter value. | Ulf Magnusson | |
| 2015-06-22 | Access _FileFeed's 'filename' and 'linenr' directly. | Ulf Magnusson | |
| Don't bother with the accessors internally as they're unlikely to do anything but return a variable. Direct access shaves a percent or two off parsing. | |||
| 2015-06-20 | Make all examples Python 3-friendly. | Ulf Magnusson | |
| print -> print(). Skip 'from __future__ import print_function' by only having a single argument (to avoid interpretation as tuples in Python 2). Keeps the examples simple. | |||
| 2015-06-20 | Make Config.get_symbols(True) return a list for Python 3. | Ulf Magnusson | |
| Was returning a dict_values. | |||
| 2015-06-20 | Explain line_feeder in _parse_block()'s docstring. | Ulf Magnusson | |
| 2015-06-20 | Rename is_choice_symbol_ to is_choice_sym. | Ulf Magnusson | |
| Consistent with other internal names and avoids the collision with the function in a neater way. | |||
| 2015-06-20 | Simplify _get_dependent(). | Ulf Magnusson | |
| - Inline _add_dependent_ignore_siblings(). - Copy the original 'dep' set and add the recursive dependencies to it instead of creating an initially empty set. No discernible performance improvement, but bit neater. | |||
| 2015-06-20 | Clean up Comment method ordering. | Ulf Magnusson | |
| Make somewhat consistent with the other classes. | |||
| 2015-06-20 | Clean up Menu method ordering. | Ulf Magnusson | |
| Make somewhat consistent with the other classes. | |||
| 2015-06-20 | Clean up Choice method ordering. | Ulf Magnusson | |
| Put getters together and make consistent with Symbol. | |||
| 2015-06-20 | Clean up Symbol method ordering. | Ulf Magnusson | |
| Put getters together. | |||
| 2015-06-20 | Clean up Config method ordering. | Ulf Magnusson | |
| Split into logical sections and put more related methods closer to one another. | |||
| 2015-06-19 | Optimize .config writing. | Ulf Magnusson | |
| The old note no longer seems to apply. Going through the defconfig part of the test suite without verification in PyPy drops from ~5:50 to ~5:30, and line_prof shows some improvement for CPython too. Passing the 'write' method around instead was a bit slower. | |||
| 2015-06-19 | Make the _parse_expr() docstring more informative. | Ulf Magnusson | |
| 2015-06-19 | Get rid of _Feed.__len__(). | Ulf Magnusson | |
| Cleaner to just check for more tokens in the few spots that used it. Seems slightly faster too, though it might be in the noise. | |||
| 2015-06-19 | Avoid creating redundant lists when parsing expressions. | Ulf Magnusson | |
| 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. | |||
| 2015-06-19 | Use consistent capitalization. | Ulf Magnusson | |
| 2015-06-18 | Rename the *_2() methods to *_rec(). | Ulf Magnusson | |
| Matches their function. | |||
| 2015-06-18 | Optimize _get_expr_syms(). | Ulf Magnusson | |
| Instantiating that nested function with free variables turned out to be quite expensive in cProfile. For the _build_dep() case, it would be even neater to have a function like _add_sym_deps(sym, expr) that adds 'sym' to each 'deps' set in 'expr', removing the need for a temporary set. Unfortunately, _get_expr_syms() is used elsewhere too, and it's probably not worthwhile having another very similar function just as a small optimization. | |||
| 2015-06-17 | Do not unset user values before the first test. | Ulf Magnusson | |
| Redundant, plus we get more coverage for the default state. | |||
| 2015-06-17 | Make sure scripts/kconfig/conf is built ourselves. | Ulf Magnusson | |
| Bit friendlier. | |||
| 2015-06-17 | Remove env. variables in a neater way. | Ulf Magnusson | |
| 2015-06-17 | Nit. | Ulf Magnusson | |
| 2015-06-17 | Add note re. speedy mode in a fresh kernel tree. | Ulf Magnusson | |
| 2015-06-17 | Remove unused _tokenize() default parameter value. | Ulf Magnusson | |
| 2015-06-17 | Comment consistency nit. | Ulf Magnusson | |
| 2015-06-17 | _sym_lookup() docstring nit. | Ulf Magnusson | |
| 2015-06-17 | Invert _sym_lookup()'s register-new-symbols flag. | Ulf Magnusson | |
| Simpler. | |||
| 2015-06-17 | _tokenize() comment nit. | Ulf Magnusson | |
| 2015-06-17 | _tokenize() comment nits. | Ulf Magnusson | |
| 2015-06-17 | Add __slots__ to internal classes. | Ulf Magnusson | |
| Speeds _Feed creation up a bit during tokenization. Keep public classes slotless for flexibility. | |||
| 2015-06-17 | Check for T_HELP before None during tokenization. | Ulf Magnusson | |
| Optimization. Saves an 'if None' check for each 'help'. | |||
| 2015-06-17 | Set the initial index later in _tokenize(). | Ulf Magnusson | |
| Small optimization. No need to fetch it for 'help' tokens, which return early. | |||
| 2015-06-17 | Remove probably unhelpful tokenization comment. | Ulf Magnusson | |
| The regexes handle most stripping of trailing space now too. | |||
| 2015-06-17 | Docstring nit. | Ulf Magnusson | |
| 2015-06-17 | Speedy test suite mode is still safe. | Ulf Magnusson | |
| 2015-06-17 | Link Kconfig documentation. | Ulf Magnusson | |
