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
{{ message }}
This repository was archived by the owner on Sep 14, 2023. It is now read-only.
Over on Reddit, @mikeyhew mentioned that there might be an option to parse JSON strings without copying:
Just wanted to point out that serde-json isn't zero-copy because it will copy strings to turn escape sequences like "\n" and "" into the character they represent. To parse JSON without copying, you could make a custom string type, JsonStr, which is utf-8 like str but can contain escape sequences.
I forgot about that, but it's actually a great idea
627E
!
Here's the upstream discussion on serde-json.
We should give this custom string type some serious consideration, as string allocation takes a big part of the encoding/decoding process at the moment.