Skip to content

Glossary: Data Structures and Algorithms in C++

-O2

Also written: optimization

A compiler flag that turns on optimization. It drops work whose result is unused, so a timing can show 0 unless you use the result.

Where the book teaches it

Related terms

std::chrono::steady_clock