Mehdi Akiki

Posts tagged "monomorphization"

  • Published on

    Investigation · Part 7 of 10 · Types under the hood

    Two Ways to Make a Type Disappear: Erasure and Monomorphization

    One generic function used with three types produced three copies in the Rust binary and one function in the JavaScript output. I counted the symbols, found the vtable jump, and argue that monomorphization is a trade most code makes without measuring it.
  • Published on

    Investigation · Part 3 of 3 · Rust build times

    The Unit of Rebuild When You Split a Rust Workspace

    Measured with the same code as 1, 3 and 12 crates: splitting a Rust workspace narrows incremental rebuilds but increases total work, because generic instances are emitted once per crate.