Mehdi Akiki

Posts tagged "trait objects"

  • Published on

    Investigation · Part 2 of 3 · Async Rust under the hood

    Async fn in a dyn Trait: What the Box Costs, Measured

    Calling an async method through dyn Trait needs a boxed future. I measured what that box costs per call, with an allocation counter and a million calls, and where it actually matters.