sledgehammer

Crates.io version Download docs.rs docs

Breaking the WASM<->JS peformance boundry one brick at a time

Status: There are some holes in the wall.

What is Sledgehammer?

Sledgehammer provides faster rust bindings for dom manipuations by batching calls to js.

Benchmarks

How does this compare to wasm-bindgen/web-sys:

wasm-bindgen is a lot more general, and ergonomic to use than sledgehammer. It has bindings to a lot of apis that sledgehammer does not. For most users wasm-bindgen is a beter choice. Sledgehammer is specifically designed for web frameworks that want low level, fast access to the dom.

Why is it fast?

String decoding

Single byte attributes and elements

Byte encoded operations

Minimize passing ids