Rust Performance

Profile before optimizing, cut allocation out of hot paths, and treat LTO, codegen-units, PGO and target-cpu as the last five percent. Use when Rust code is too slow, when a benchmark regresses, when reviewing code that allocates or formats inside a loop, when release-profile or codegen flags come up, or when the user asks how to make Rust faster.

rewrite-rs b16b66b 3 files · 8.9 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/rust/rust-performance commit b16b66b39c

Frequently asked questions

npx skillmds@latest add rewrite-rs/rust-performance