Rewriting Kafka in Rust

(wangjunfei.com)

10 points | by chuckhend 5 hours ago

1 comments

  • zamalek 29 minutes ago
    > 1. Avoid Turning Functions into async Whenever Possible

    > Consider the following example:

    Has the author benchmarked this? They are essentially replicating what the compiler does already: the compiler doesn't put each statement/expression into its own state, states occur on the boundaries of awaits.