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.
This commit is contained in:
Damien George
2020-03-12 16:46:20 +11:00
parent 081d067662
commit bc009fdd62
6 changed files with 308 additions and 2 deletions

View File

@@ -1291,6 +1291,10 @@ typedef double mp_float_t;
// Extended modules
#ifndef MICROPY_PY_UASYNCIO
#define MICROPY_PY_UASYNCIO (0)
#endif
#ifndef MICROPY_PY_UCTYPES
#define MICROPY_PY_UCTYPES (0)
#endif