You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on the Gear Technology project, where we are developing the Gear Protocol with smart contracts written in WebAssembly. To reduce the size of the resulting WASM files, we are using your wasm-opt utility. However, our network imposes a limit on the maximum number of data sections in a WASM file.
We found the --limit-segments CLI flag, but it doesn’t allow for custom values. Our network’s limit is 1024 data sections, while the current default value in wasm-opt is set to 100,000 (in src/wasm-opt.h). Would it be possible to add the option to set a custom value for MaxDataSegments?
The text was updated successfully, but these errors were encountered:
I am working on the Gear Technology project, where we are developing the Gear Protocol with smart contracts written in WebAssembly. To reduce the size of the resulting WASM files, we are using your wasm-opt utility. However, our network imposes a limit on the maximum number of data sections in a WASM file.
We found the
--limit-segments
CLI flag, but it doesn’t allow for custom values. Our network’s limit is 1024 data sections, while the current default value in wasm-opt is set to 100,000 (insrc/wasm-opt.h
). Would it be possible to add the option to set a custom value for MaxDataSegments?The text was updated successfully, but these errors were encountered: