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

Customize the limit of MaxDataSegments #7229

Open
ecol-master opened this issue Jan 18, 2025 · 0 comments
Open

Customize the limit of MaxDataSegments #7229

ecol-master opened this issue Jan 18, 2025 · 0 comments

Comments

@ecol-master
Copy link

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?

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

No branches or pull requests

1 participant