summaryrefslogtreecommitdiffstatshomepage
path: root/py/objstrunicode.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-11-06 23:25:10 +0000
committerDamien George <damien.p.george@gmail.com>2015-11-06 23:25:10 +0000
commit8b8d189bc09b050f9a66048736c7e990ac8c8335 (patch)
tree5d9d9c77f5a9d0b84724037ff74907cf9c565234 /py/objstrunicode.c
parent8f7ff854b0e341aa49d198a93fea7e83dd4cc71c (diff)
downloadmicropython-8b8d189bc09b050f9a66048736c7e990ac8c8335.tar.gz
micropython-8b8d189bc09b050f9a66048736c7e990ac8c8335.zip
py: Adjust object repr C (30-bit stuffed float) to reduce code size.
This patch adds/subtracts a constant from the 30-bit float representation so that str/qstr representations are favoured: they now have all the high bits set to zero. This makes encoding/decoding qstr strings more efficient (and they are used more often than floats, which are now slightly less efficient to encode/decode). Saves about 300 bytes of code space on Thumb 2 arch.
Diffstat (limited to 'py/objstrunicode.c')
0 files changed, 0 insertions, 0 deletions