-
Notifications
You must be signed in to change notification settings - Fork 91
Description
I am exploring adopting simd-json for parsing GeoJSON files in the geojson library. However, I'm having trouble understanding how this library is meant to be used. I thought it would be a drop-in replacement for serde (given that it falls back to serde for parsing when SIMD instructions aren't available). But when I just replace use serde::{etc} with use simd_json::{etc}, it turns out that simd_json doesn't export Deserialize, Serialize or Serializer. So clearly there's more to it.
The examples directory has just a single file in it, which is actually a benchmarking exercise. It's not clear from that code how to convert a serde_json implementation to one using simd-json.
The one glimmer of explanation I have found is in the Serde Compatible API section of the docs, but it has a warning saying that it's untested!
So I'm hoping I can get a pointer to some documentation or example code for how to acutally use this library to speed up an existing serde_json implemtation. Thanks in advance.