Skip to content
#

encode

Here are 230 public repositories matching this topic...

mre
mre commented Sep 21, 2019

From our benchmarks we can see that we are consistently slower than everyone else when serializing/deserializing boolean values. We should fix that.

orjson is using an unsafe block to create a reference to a boolean:
https://github.com/ijl/orjson/blob/03d55e99a953ce93cedc05f03e4b63b0bcbbcc7a/src/decode.rs#L81-L96

This avoids additional allocations.
For comparison, this is our code at the

Improve this page

Add a description, image, and links to the encode topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the encode topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.