Change JSON parser lib #3340
williamthome
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
We are using jsxrecord as a wrapper. Maybe we should have called it jsonrecord instead. jsxrecord "understands" the Erlang records for serialization and deserialization, and maps I am open to swap the JSON library used by jsxrecord. From what I remember jiffy is very fast, but (being a NIF) had a problem with locking the scheduler, so not scaling nicely for parallel work. Might have been fixed though. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
JSON parser is used a lot in Zotonic.
The current Zotonic parser is
jsxrecord
.I benchmarked some JSON parser libs, and there is a huge difference comparing the result:
jiffy
is really fast.I have not tested changing the parser in Zotonic, just noticed that improvement is easy since Zotonic encapsulates the JSON parser in the
z_json
module.See the bench repo for more info or a local test.
Libs URL
My setup
Beta Was this translation helpful? Give feedback.
All reactions