jonathanKingston / jonathanKingston/wurst

Code bloat

Open
#18 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Description

I'm not sure what is causing bloat but wasm-bindgen itself can produce smaller files.

The two examples on https://rustwasm.github.io/2018/09/26/announcing-web-sys.html are even smaller at 152 and 113kb. Both of those would likely be much bigger in JS.

I suspect the interfaces themselves are still being generated and included in the binary perhaps. The library here should be a near zero cost abstraction as far as I understand it.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported binary sizes and compare them with the two wasm-bindgen examples linked in the issue. Inspect whether the generated interfaces are included in the output, then measure the result after any investigation; done means identifying the source of the bloat and confirming a smaller generated binary.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, wasm
Domain
performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.