summaryrefslogtreecommitdiff
path: root/examples/allnoconfig_simpler.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2015-06-18 16:25:25 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2015-06-18 17:06:56 +0200
commitf171a001919f6f9e3dca935ab6fd2a4d1fed3778 (patch)
tree7f2c994fc828cbc5e5d6a4ee7229667921fcfbff /examples/allnoconfig_simpler.py
parent7f1ae0f76b7a0bdee46786e937781b9e0082d2e0 (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 'examples/allnoconfig_simpler.py')
0 files changed, 0 insertions, 0 deletions