diff options
author | Jim Mussared <jim.mussared@gmail.com> | 2021-09-20 22:43:39 +1000 |
---|---|---|
committer | Jim Mussared <jim.mussared@gmail.com> | 2021-11-01 15:25:45 +1100 |
commit | 693b927687c3ac18726a5eb7b64127fc347a3c41 (patch) | |
tree | 7f06ffd4124f5b0ebfa15395b768d6046e5c7e01 /tools/codeformat.py | |
parent | c62351fbd67e0f32e33e2066b7c07a79ac52481d (diff) |
rp2: Enable optimisations (comp goto, map cache, fast attr).
Computed goto costs 1800 bytes for 5-10% performance.
Map caching and attr fast path costs 130 bytes for up to 30%.
Net effect of those three optimisations:
bm_chaos.py +16.059% (+/-0.09%)
bm_fannkuch.py +11.145% (+/-0.01%)
bm_fft.py +14.604% (+/-0.01%)
bm_float.py +26.849% (+/-0.08%)
bm_hexiom.py +34.039% (+/-0.03%)
bm_nqueens.py +18.333% (+/-0.06%)
bm_pidigits.py +4.472% (+/-0.03%)
misc_aes.py +28.765% (+/-0.09%)
misc_mandel.py +27.116% (+/-0.05%)
misc_pystone.py +40.299% (+/-0.20%)
misc_raytrace.py +22.812% (+/-0.07%)
Also enable other EXTRA-level optimisations (module const, return_if_expr,
triple_tuple_assign, factorial, mpz bitwise).
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'tools/codeformat.py')
0 files changed, 0 insertions, 0 deletions