When compiling a Rust crate to WASM in release mode, there is a utility being used called
wasm-opt that, when called, ramps up my CPU like almost no software I've ever seen*: it has work for all cores, which is quite a feat since I have 16 of them. In addition, it can keep all those cores fed for roughly 3-4 minutes straight.
So I'm wondering: what kinds of optimizations does wasm-opt perform that consume so much computing power?
*exceptions are compiling a crate that has a lot of (transitive) Rust dependencies, and (if I were so inclined) video rendering.