diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-18 16:25:25 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-18 17:06:56 +0200 |
| commit | f171a001919f6f9e3dca935ab6fd2a4d1fed3778 (patch) | |
| tree | 7f2c994fc828cbc5e5d6a4ee7229667921fcfbff /tests/config_set_bool | |
| parent | 7f1ae0f76b7a0bdee46786e937781b9e0082d2e0 (diff) | |
Optimize _get_expr_syms().
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.
Diffstat (limited to 'tests/config_set_bool')
0 files changed, 0 insertions, 0 deletions
