-
-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ujson as a drop in replacement for json library? #95
Comments
The speed gains from ujson are good... but orjson, pysimdjson... the list goes on of other libraries that offer a different set of features/performance against increasing complexity... for example, ujson just got working binary wheels again for all supported platforms. If anything, I'd imagine trying to find a library that wrapped (but did not depend on) all of these... |
I'd support any of the above provided they're installable as wheels and available on conda-forge. |
at least orjson says it may not work on 32-bit, which means jupyter presumably wouldn't work on my Raspberry pi anymore :(. What about pypy support as well? I think we could perhaps try to use something like ujson or orjson if we can import it, but fall back to the standard library json if it is not available. |
Sure, that makes sense too. |
Can I ask what leaned you towards picking ujson or orjson over pysimdjson? It helps me improve the library and packaging. Note pysimdjson has pretty wide compatibility, and is tested against linux/macosx/windows/freebsd (x86_64 and ARM) for py3.5 -> 3.9beta, as well as pypy3. It has binary ARM packages as well, so it will install quickly on your raspberry pi (3 or 4) as long as you're using one of the 64 bit OSes. |
A library called ujson is a drop-in replacement for the
json
. I will be using that on the localization plugin and thought could be useful here, although for smaller files the gain is probably small also.The text was updated successfully, but these errors were encountered: