perf(wasm): add min package and reduce wasm size#971
Open
lodyai[bot] wants to merge 3 commits intomainfrom
Open
perf(wasm): add min package and reduce wasm size#971lodyai[bot] wants to merge 3 commits intomainfrom
lodyai[bot] wants to merge 3 commits intomainfrom
Conversation
c4ad503 to
b8106d9
Compare
Contributor
WASM Size Report
|
Contributor
WASM Min Size Report
|
b8106d9 to
bdb3906
Compare
cc81c40 to
55d14d7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
loro-crdt/minpackage build that disables debug hooks, JSON schema validation, and JSONPath-related wasm APIsgeneric-btreeso wasm-size changes can be made locally, remove unused dependencies, and reduce generic/inline bloat#[inline(always)]usage across shared crates to reduce wasm monomorphization pressureValidation
cargo test -p generic-btree --libcargo fmt --check --package generic-btreejust build-wasm release min bundlernode WebAssembly.compileoncrates/loro-wasm/min/bundler/loro_wasm_bg.wasmcargo fuzz run random_import -- -max_total_time=60passed 4,573,622 runscargo fuzz run local_events -- -max_total_time=60passed 6,029 runsSize
loro-crdt/minbundler wasm: raw 1,987,971 bytes, gzip 643,797 bytes, brotli 486,691 bytes