6 ms·
We actually tried switching to asyncio in production, but got worse cpu utilisation and worse latency (vs greenlet). After some benchmarking and tuning, we got
by ozychhi 7y ago
We actually tried switching to asyncio in production, but got worse cpu utilisation and worse latency (vs greenlet). After some benchmarking and tuning, we got a bit better latency, but CPU utilisation was still worse, so we actually ended up swithcing back to just using greenlet :(
- nurettin 7y agoI would not recommend using asyncio for cpu-intensive tasks. Processing pools are much better for that.