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

4438 reduce the sizeamount of data sections in optwasm #4444

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ecol-master
Copy link
Contributor

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

  • added methods for Optimizer struct utils/wasm-optimizer/optimize.rs
  • added program example with large data section

@grishasobol

@ecol-master ecol-master linked an issue Jan 16, 2025 that may be closed by this pull request
@grishasobol grishasobol added the A0-pleasereview PR is ready to be reviewed by the team label Jan 17, 2025
@grishasobol grishasobol self-assigned this Jan 17, 2025
let _ = prog.send_bytes(USER_ID, b"");
let _ = sys.run_next_block();

let random_payload: Vec<Vec<u8>> = vec![
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you pls use here proptests to make sure its not coincidence? also run a few times locally with huge amount of repetitions

@grishasobol grishasobol added A1-inprogress Issue is in progress or PR draft is not ready to be reviewed A5-dontmerge PR should not be merged yet and removed A0-pleasereview PR is ready to be reviewed by the team labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A1-inprogress Issue is in progress or PR draft is not ready to be reviewed A5-dontmerge PR should not be merged yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reduce the size/amount of data sections in .opt.wasm
3 participants