Skip to content
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

Using orjson instead of default json library #2784

Open
ff137 opened this issue May 10, 2024 · 1 comment
Open

Using orjson instead of default json library #2784

ff137 opened this issue May 10, 2024 · 1 comment

Comments

@ff137
Copy link

ff137 commented May 10, 2024

Good day,

Just a quick question, because it doesn't appear to have been suggested here before:
Have you considered replacing the default json library with orjson? It boasts 10-50x faster speeds in some instances.

Just asking to gauge sentiment on using orjson instead, and it's maybe something I can help contribute.

@nicholascar
Copy link
Member

These sorts of suggestions - to use faster versions of packages - do come up from time-to-time. The issue here is "pure python". orjson is a rust-based thing, right? We do need to maintain a pure Python implementation.

A PR to allow an install option for rdflib with orjson instead of json would be welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants