Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Transmuter] Reduce wasm code size #8349

Open
iboss-ptk opened this issue Jun 5, 2024 — with Linear · 0 comments
Open

[Transmuter] Reduce wasm code size #8349

iboss-ptk opened this issue Jun 5, 2024 — with Linear · 0 comments

Comments

Copy link
Contributor

iboss-ptk commented Jun 5, 2024

Optimized wasm size for v3.0.0 is already 661 KB which will soon reach max gas. We need to hand pick unnecessary stuffs out of existing code base to reduce the code size or find other strategy for it.

  • bloated mostly comes from enum deserialization code gen from serde
    • so we can actually deserialize msg as json::Value(Map<K,V>) and go from there to avoid serde derive for other type
  • there are macros that can be replaced with function, esp ensure_admin_authority
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage 🔍
Development

No branches or pull requests

1 participant