rocicorp / repc

The canonical Replicache client, implemented in Rust.
Other
30 stars 7 forks source link

Switch to Cloudflare's serde-wasm-bindgen for serialization to/from JS. #204

Closed aboodman closed 4 years ago

aboodman commented 4 years ago

This goes back and forth via the JS API rather than via JSON.

Reduce binary size by ~5% Increase scan perf by: ~23%

replicache_client.js: 24114
replicache_client.js.br: 4515
replicache_client_bg.wasm: 517109
replicache_client_bg.wasm.br: 149832

Running benchmarks please wait...
populate 1024x1000 (clean) x 1.73 MB/s ±0.0% (0 runs sampled)
populate 1024x1000 (dirty) x 1.72 MB/s ±0.0% (0 runs sampled)
scan 1024x1000 x 22.19 MB/s ±0.0% (0 runs sampled)
scan 1024x5000 x 21.42 MB/s ±0.0% (0 runs sampled)
Done!