Closed bdraco closed 1 year ago
Just to confirm, you've tested this to make sure our API use isn't expecting text responses? I can't remember how we designed this.
I've been running this in production on two systems and all good.
orjson.loads
takes any of bytes
bytearray
memoryview
str
https://github.com/ijl/orjson#deserialize so it should handle text or bytes just fine
Thanks for confirming. Perf won't trigger a release but apparently we have a bug that needs to be squashed so I think we'll have a release soon.
orjson can decode bytes directly without the need to convert it to text first.
Avoid calling
.text
since it has to do extra processing under the hood in debug as well