diff options
author | David Lechner <david@pybricks.com> | 2023-03-15 16:48:16 -0500 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-05-09 12:44:14 +1000 |
commit | 468ed218c954d34c1cc6affeeff4153b3f16b6b5 (patch) | |
tree | 0be7735fd4ef1a2f5c34bcb3342c4945131b1980 /docs/esp32/tutorial | |
parent | 7c645b52e315fa3d63bb95bb42ccf2a9c15fe21d (diff) | |
download | micropython-468ed218c954d34c1cc6affeeff4153b3f16b6b5.tar.gz micropython-468ed218c954d34c1cc6affeeff4153b3f16b6b5.zip |
py/gc: Make improvements to MICROPY_GC_HOOK_LOOP.
Changes in this commit:
- Add MICROPY_GC_HOOK_LOOP to gc_info() and gc_alloc(). Both of these can
be long running (many milliseconds) which is too long to be blocking in
some applications.
- Pass loop variable to MICROPY_GC_HOOK_LOOP(i) macro so that implementers
can use it, e.g. to improve performance by only calling a function every
X number of iterations.
- Drop outer call to MICROPY_GC_HOOK_LOOP in gc_mark_subtree().
Diffstat (limited to 'docs/esp32/tutorial')
0 files changed, 0 insertions, 0 deletions