Mehdi Akiki

Posts tagged "performance"

  • 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.
  • Published on

    Article · Through the layers

    Why Rust Async Futures Get So Large

    Rust async functions store every value needed after an await. Learn to measure future size, identify saved fields, and reduce it without boxing everything.
  • Published on

    Reference · Derived state

    Cursor Pagination vs Offset Pagination

    Offset pagination is easy to write and breaks in two ways: it gets slow, and it skips or repeats rows when the data changes. Cursor pagination fixes both. Here is the difference.
  • Published on

    Reference · Through the layers

    The 4 Real Reasons Kafka Is Fast

    "Kafka is fast" is correct but too abstract. Here is the concrete version: four cheap operations that explain why Kafka handles millions of messages without breaking a sweat.