Skip to content

Commit

Permalink
blog: rewords
Browse files Browse the repository at this point in the history
  • Loading branch information
ArhanChaudhary committed Aug 26, 2024
1 parent de0fb5d commit 1643f4e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ These are just the "Optimization options". There exists an even *larger* list of
...
```

I spent almost an entire day testing out the effectiveness of each flag to little avail. A lot of these flags aren't even optimizations, and the ones that are were all seemingly ineffectual. Still, I opened a [pull request](https://github.com/rustwasm/wasm-pack/pull/1423) that explicitly references the full list of available wasm-opt flags in wasm-pack's documentation to them easier to find.
I spent almost an entire day testing out the effectiveness of each flag to little avail. A lot of these flags aren't even optimizations, and the ones that are were all seemingly ineffectual. If you're looking to hyper-optimize your binaryen WebAssembly you're better off sticking with the "Optimization options" flags. You may also find useful the [optimizer cookbook](https://github.com/WebAssembly/binaryen/wiki/Optimizer-Cookbook) and the [GC optimization guidebook](https://github.com/WebAssembly/binaryen/wiki/GC-Optimization-Guidebook) from binaryen's wiki.

If you're looking to hyper-optimize your binaryen WebAssembly, Rust aside, you're better off sticking with the "Optimization options" flags. You may also find useful the [optimizer cookbook](https://github.com/WebAssembly/binaryen/wiki/Optimizer-Cookbook) and the [GC optimization guidebook](https://github.com/WebAssembly/binaryen/wiki/GC-Optimization-Guidebook) from binaryen's wiki.
Coming to think about it, this blog post doesn't have to be about wasm-pack at all, as the topic more closely concerns binaryen. I thought it was important to frame this post from a Rust point of view because of how surprisingly obscure this information is to wasm-pack users new to the WebAssembly pipeline. I have opened a [pull request](https://github.com/rustwasm/wasm-pack/pull/1423) that explicitly references the full list of available wasm-opt flags in wasm-pack's documentation to make them easier to find.

Until next time!

0 comments on commit 1643f4e

Please sign in to comment.