summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/slice_attrs.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-06-09 13:31:57 +1000
committerDamien George <damien.p.george@gmail.com>2017-06-09 13:36:33 +1000
commita8a5d1e8c8db3b7c64e1921005ceb5a5d47280f4 (patch)
tree8b6ba37193f4c3eaaa9a1115d2be6d90055ce565 /tests/basics/slice_attrs.py
parent4352b944d2fe0919b34774bec1a6ea440649a1df (diff)
downloadmicropython-a8a5d1e8c8db3b7c64e1921005ceb5a5d47280f4.tar.gz
micropython-a8a5d1e8c8db3b7c64e1921005ceb5a5d47280f4.zip
py: Provide mp_decode_uint_skip() to help reduce stack usage.
Taking the address of a local variable leads to increased stack usage, so the mp_decode_uint_skip() function is added to reduce the need for taking addresses. The changes in this patch reduce stack usage of a Python call by 8 bytes on ARM Thumb, by 16 bytes on non-windowing Xtensa archs, and by 16 bytes on x86-64. Code size is also slightly reduced on most archs by around 32 bytes.
Diffstat (limited to 'tests/basics/slice_attrs.py')
0 files changed, 0 insertions, 0 deletions