Skip to content

Glossary: Data Structures and Algorithms in Rust

rustc -O

Also written: -O, optimizer, rustc

The command to compile a single Rust file with the optimizer on. Without -O, timings mean little, and the optimizer may delete a search whose result is never used.

Where the book teaches it

Related terms

Instant