6 ms·
If you're primarily targeting Python as an application layer, you may also want to check out my msgspec library[1]. All the perf benefits of e.g. yyjson, but wi
by jammycrisp 4y ago
If you're primarily targeting Python as an application layer, you may also want to check out my msgspec library[1]. All the perf benefits of e.g. yyjson, but with schema validation like pydantic. It regularly benchmarks[2] as the fastest JSON library for Python. Much of the overhead of decoding JSON -> Python comes from the python layer, and msgspec employs every trick I know to minimize that overhead. </sales pitch>
[1]: https://github.com/jcrist/msgspec https://github.com/jcrist/msgspec
[2]: https://github.com/TkTech/json_benchmark https://github.com/TkTech/json_benchmark