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

Reduce the size/amount of data sections in .opt.wasm #4438

Open
ecol-master opened this issue Jan 13, 2025 · 0 comments · May be fixed by #4444
Open

Reduce the size/amount of data sections in .opt.wasm #4438

ecol-master opened this issue Jan 13, 2025 · 0 comments · May be fixed by #4444
Labels
C0-bug Something isn't working

Comments

@ecol-master
Copy link
Contributor

Problem

There is an issue with the .opt.wasm files, where an excessive number of data segments are being generated. Specifically, in the example below (see ref) the WebAssembly optimizer creates over 11,000 data segments when building the program. This behavior is problematic and exceeds the current network limits with 1024 segments.

Reference: https://github.com/gear-foundation/gear.exe-dapps/tree/lm-cnn-data-section/cnn-cats-dogs

Steps

Possible Solution

No response

Notes

No response

Relevant Log Output

Click to expand/collapse

<Paste your log here>

@ecol-master ecol-master added the C0-bug Something isn't working label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C0-bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant