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

Is performance of JSONObject.get() and JSONObject[] method slower than python dict? #52

Open
gzrjzcx opened this issue Jun 27, 2024 · 2 comments

Comments

@gzrjzcx
Copy link

gzrjzcx commented Jun 27, 2024

In my case, the speed of parser.parse() is about 4x faster than orjson.loads(), great!
However, both JSONObject.get() and [] method to access inner attribute is 2x slower than python dict.get() and [] mthod.

Is there any good ideas to load json use this module, and use python dict to access value? ps., export() method is too heavily.
Or is there any other more efficient method to access the value?

Thanks

@ghost
Copy link

ghost commented Aug 18, 2024

Have you found anything?

@gzrjzcx
Copy link
Author

gzrjzcx commented Aug 20, 2024

Have you found anything?

No, finally I dont use this method. If u have any alternative approach, please tell me. Thanks.

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

1 participant