3 ms·
Why better without async? You feel the same about std::async?
by DSingularity 7y ago
Why better without async? You feel the same about std::async?
- TFortunato 7y agoAs parent mentioned, there is overhead to using async: both in actual execution (e.g. likely spinning up another thread, plus creating a future object) and cognitively (in terms of following control flow, and knowing when exactly things are happening). It's not that it isn't great when you do need it, but there are also plenty of cases where you don't need it and it's just unnecessary overhead.