diff options
author | Damien George <damien.p.george@gmail.com> | 2018-02-28 15:11:20 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-28 15:11:20 +1100 |
commit | 09be031e047f0e7ba77620c29c5abbdbd5e3d055 (patch) | |
tree | e59d9d3045d9f96e26ce5ed827aaf6b18a87fef7 /tests/float/float_format.py | |
parent | 439acddc6052f112e8c2e57a6d50c7569344a6bf (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