diff options
author | Damien George <damien.p.george@gmail.com> | 2015-03-21 14:21:54 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-03-21 14:21:54 +0000 |
commit | 55b74d1ff5fcdd32150b10cb42cd1fd59f1317c3 (patch) | |
tree | 6bcd00d3379aecc8b7a0012aac633b446c646768 /py/formatfloat.c | |
parent | 59f68313369802a9fe19c5161891075d5163c0f0 (diff) | |
download | micropython-55b74d1ff5fcdd32150b10cb42cd1fd59f1317c3.tar.gz micropython-55b74d1ff5fcdd32150b10cb42cd1fd59f1317c3.zip |
py: Combine duplicated code that converts members from a lookup.
Despite initial guess, this code factoring does not hamper performance.
In fact it seems to improve speed by a little: running pystone(1.2) on
pyboard (which gives a very stable result) this patch takes pystones
from 1729.51 up to 1742.16. Also, pystones on x64 increase by around
the same proportion (but it's much noisier).
Taking a look at the generated machine code, stack usage with this patch
is unchanged, and call is tail-optimised with all arguments in
registers. Code size decreases by about 50 bytes on Thumb2 archs.
Diffstat (limited to 'py/formatfloat.c')
0 files changed, 0 insertions, 0 deletions