esoterra / component-opt

A Wasm component optimizer (mostly a wrapper around wasm-opt)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

component-opt

An optimizer for Wasm Components

Crates.io version Download docs.rs docs

build status

Current Status

This project currently only offers one optimization and does not allow it to be configured.

That optimization is simply to unpack the modules within the component and optimize them. It makes extensive use of

  • wasmparser for parsing components,
  • wasm-opt for performing module optimization, and
  • wasm-encoder for constructing th output component.

The current testing methodology is explained in the Tests README

Goals

In the long run, I'd like this project to evolve to include "Component-aware" optimizations.

I've created a Optimization Pass Issue Tracker for proposed optimization passes.

About

A Wasm component optimizer (mostly a wrapper around wasm-opt)

License:Apache License 2.0


Languages

Language:Rust 100.0%