Allow installation of large Wasm modules

A few more issues in favour of removing the Wasm limit and its impact.

  1. If someone wants to transfer ICP or deploy canisters dynamically or use Internet Identity in their project, developing locally gets quite involved. That’s partially due to having to setup the canisters locally (getting the wasm files, understanding the required deploy arguments, switching candid files before and after deployment and having a separate scripts to deploy in different environments). To bypass the wasm limit they have to deploy a deployer canister and managing deploy scripts and add to an already elaborate process.

  2. After updating to dfx 12 (from dfx 11) some of the wasm files got around 30% bigger (from 1.6mb to 2.1mb) and went over the Wasm limit. Although the change log states that the actual optimisation hasn’t changed in practise it did. About the update refactor-optimize-from-ic-wasm. Probably related to make-ic-wasm-as-capable-as-ic-cdk-optimizer.

2 Likes