Skip to content

amatveiakin/regex-wasm-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WASM regex size demo

This demo shows how regex crate contributes to WASM binary size.

How-to

  1. Go to Cargo.toml and select regex features
  2. Build: wasm-pack build
  3. Check out pkg/regex_wasm_demo_bg.wasm

Results

For me the results with regex version 1.6.0 were as follows:

  • Baseline (no regex): 1 KiB
  • Limited Unicode support, no optimizations: 214 KiB
  • Limited Unicode support, full optimizations: 338 KiB
  • Full Unicode support, no optimizations: 500 KiB
  • Full Unicode support, full optimizations (default features): 623 KiB

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages