diff options
author | Damien George <damien.p.george@gmail.com> | 2020-03-12 16:46:20 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-03-26 01:25:45 +1100 |
commit | bc009fdd62f913e36443f8267ffb6133f537fff3 (patch) | |
tree | 977959e2e1f54abaf233924188e8fcc5e61c8ab8 /py/objmodule.c | |
parent | 081d06766223b326b6d7eeceae817b7a3a3f57b0 (diff) | |
download | micropython-bc009fdd62f913e36443f8267ffb6133f537fff3.tar.gz micropython-bc009fdd62f913e36443f8267ffb6133f537fff3.zip |
extmod/uasyncio: Add optional implementation of core uasyncio in C.
Implements Task and TaskQueue classes in C, using a pairing-heap data
structure. Using this reduces RAM use of each Task, and improves overall
performance of the uasyncio scheduler.
Diffstat (limited to 'py/objmodule.c')
-rw-r--r-- | py/objmodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objmodule.c b/py/objmodule.c index 79047009f6..060e1bc1e6 100644 --- a/py/objmodule.c +++ b/py/objmodule.c @@ -170,6 +170,9 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = { // extmod modules + #if MICROPY_PY_UASYNCIO + { MP_ROM_QSTR(MP_QSTR__uasyncio), MP_ROM_PTR(&mp_module_uasyncio) }, + #endif #if MICROPY_PY_UERRNO { MP_ROM_QSTR(MP_QSTR_uerrno), MP_ROM_PTR(&mp_module_uerrno) }, #endif |