cysimdjson icon indicating copy to clipboard operation
cysimdjson copied to clipboard

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

Open gzrjzcx opened this issue 1 year ago • 2 comments

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

gzrjzcx avatar Jun 27 '24 12:06 gzrjzcx

Have you found anything?

ghost avatar Aug 18 '24 08:08 ghost

Have you found anything?

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

gzrjzcx avatar Aug 20 '24 02:08 gzrjzcx