Skip to content

Python >= 3.5 asyncio instead of ThreadPool

Compare
Choose a tag to compare
@scivision scivision released this 17 Feb 17:34
ba12212

Using single-threaded asyncio vs. ThreadPool is twice as fast or more, using just a single thread and coroutines, all standard library for Python >= 3.5. The asyncio benefit is particularly noticeable on limited resource systems like Raspberry Pi.

Also, now Matlab works really fast as well calling the Python coroutine code