3 ms·
That doesn't sound right. In which way was your application slow? Conceptually, async is not necessarily giving you parallelism but concurrency. Tokio (multith
by jokethrowaway 3y ago
That doesn't sound right. In which way was your application slow?
Conceptually, async is not necessarily giving you parallelism but concurrency.
Tokio (multithreaded) or async-std spawn N threads though and schedule your work for you.
It would be interesting to see the code or know which libraries you used (or even just what type of application you were building).
I built a heavy app using async-std and then rewrote it to threads just to better control what was each thread doing. Without my additional scheduling rules (which brought a lot of other benefits and helped performance in other ways), the performance between async and not async was close, with threads being marginally faster.