You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently are using FastSerde to do (de)serialization because found this was extremely slow in WASM in particular. I would like to suggest using rkyv which is a zero-copy serde lib.
Make a benchmark comparing deserialization performance of FastSerde, bincode, and rkyv in the browser context. We should find:
Bincode is quite slow taking tens of seconds to deserialize a handful of megabytes (10-50MB).
FastSerde likely the fastest
rkyv (hopefully) barely slower than FastSerde or ideally faster.
Tasks
We currently are using
FastSerdeto do (de)serialization because found this was extremely slow in WASM in particular. I would like to suggest usingrkyvwhich is a zero-copy serde lib.FastSerde,bincode, andrkyvin the browser context. We should find:Bincodeis quite slow taking tens of seconds to deserialize a handful of megabytes (10-50MB).FastSerdelikely the fastestrkyv(hopefully) barely slower thanFastSerdeor ideally faster.Science!