rustigc-wasm-utils
v0.1.1
Published
Decoder for the raw fix array rustigc-wasm hands over as bytes
Downloads
568
Readme
rustigc-wasm-utils
Decoder for the raw fix array rustigc-wasm hands
over as Log.track_bytes.
Optional, and independent at runtime: it reads a Uint8Array and returns plain objects, so it
imports nothing from the bindings but the Fix type. Decoding here is about 10x faster than
having serde_wasm_bindgen build the same objects from inside wasm, which crosses the FFI once
per field where this crosses once per track.
npm install rustigc-wasm rustigc-wasm-utilsimport { fixes } from "rustigc-wasm-utils";
log.track // Fix[], straight from the binding
fixes(log.track_bytes) // the same Fix[], 10x fasterThe byte layout it decodes is documented with the binding that produces it, in the rustigc-wasm README.
License
GPL-2.0-or-later WITH Classpath-exception-2.0
