7 ms·
> since the compiler cannot inline across await. Is this stated somewhere? A simple search online yields nothing, and just testing it out on godbolt the compil
by modulared 6mo ago
> since the compiler cannot inline across await.
Is this stated somewhere? A simple search online yields nothing, and just testing it out on godbolt the compiler does inline at least simple async functions as mentioned in the article.
- stevenhuang 6mo agoYeah I suppose it may be inlined if it's a trivial async function (no suspension points).