Async Rust in Practice: Performance, Pitfalls, Profiling

First Issue Arises

Reproducing the Problem

Profiling

cargo flamegraph your-app your-params

Hint

scylla = { git = "https://github.com/scylladb/scylla-rust-driver", branch = "some_custom_branch" }

Root Cause №1

Root Cause №2: a Pitfall in Async Rust

Quadratic Behavior?

The Pitfall

The Solution

Summary

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store