Skip to content

build: integrate wasm-opt -Oz optimization into Makefile#185

Merged
ayshadogo merged 1 commit into
Dfunder:mainfrom
wumibals:feat/164-wasm-optimization
May 29, 2026
Merged

build: integrate wasm-opt -Oz optimization into Makefile#185
ayshadogo merged 1 commit into
Dfunder:mainfrom
wumibals:feat/164-wasm-optimization

Conversation

@wumibals
Copy link
Copy Markdown
Contributor

Summary

Adds an optimize target to the Makefile that runs wasm-opt -Oz on all compiled WASM binaries, reducing deployment costs.

  • Runs automatically after make build
  • Reports before/after byte sizes for each contract
  • Replaces the original WASM binary in-place with the optimized version

Prerequisite: wasm-opt must be installed (cargo install wasm-opt or via binaryen).

Related

closes #164

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@wumibals Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Contributor

@ayshadogo ayshadogo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nicely implemented

@ayshadogo ayshadogo merged commit 4ef6eab into Dfunder:main May 29, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up contract WASM optimization pipeline

2 participants