summaryrefslogtreecommitdiff
path: root/tests/float/float_format.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-02-28 15:11:20 +1100
committerDamien George <damien.p.george@gmail.com>2018-02-28 15:11:20 +1100
commit09be031e047f0e7ba77620c29c5abbdbd5e3d055 (patch)
treee59d9d3045d9f96e26ce5ed827aaf6b18a87fef7 /tests/float/float_format.py
parent439acddc6052f112e8c2e57a6d50c7569344a6bf (diff)
extmod/vfs_fat_diskio: Use a C-stack-allocated bytearray for block buf.
This patch eliminates heap allocation in the VFS FAT disk IO layer, when calling the underlying readblocks/writeblocks methods. The bytearray object that is passed to these methods is now allocated on the C stack rather than the heap (it's only 4 words big). This means that these methods should not retain a pointer to the buffer object that is passed in, but this was already a restriction because the original heap-allocated bytearray had its buffer passed by reference.
Diffstat (limited to 'tests/float/float_format.py')
0 files changed, 0 insertions, 0 deletions