summaryrefslogtreecommitdiff
path: root/addons/analytic_user_function/analytic_user_function_view.xml
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2015-04-01 15:10:08 +0200
committerOlivier Dony <odo@openerp.com>2015-04-10 18:23:32 +0200
commit20b6003dce87728e55be616e6eee2cbb162bc871 (patch)
tree9e932735b87370df23892859cbaaa3df3ff492e0 /addons/analytic_user_function/analytic_user_function_view.xml
parent60ad1fec4d2367c8d6b67fb3f1a78f081a501e1b (diff)
[IMP] safe_eval: speed up evaluation
* creating the huge builtins dict inline represents ~40% of safe_eval's total cost according to line_profiler * for the specific situation of opcodes, using a set difference is apparently much faster than for+if. all(gencomp) is also faster than for+if but not as much as letting Python do (almost) all of it might be that returning a set from _get_opcodes would be even faster, but didn't test it
Diffstat (limited to 'addons/analytic_user_function/analytic_user_function_view.xml')
0 files changed, 0 insertions, 0 deletions