News for hackers. Stuff that matters.
Re:PyPy's New JSON Parser by ken on Tuesday October 08, 2019 @01:23PM (#21194632)
Isn't that tautological? Clearly, no JSON parser provides a significant gain on parse speed of small JSON documents, when you define large as those where parse time is significant.
Re:PyPy's New JSON Parser by coldtea on Tuesday October 08, 2019 @03:55PM (#21196476)
>Isn't that tautological?

No, it's no.

>Clearly, no JSON parser provides a significant gain on parse speed of small JSON documents, when you define large as those where parse time is significant.

A rather bizarre deduction.

E.g. "define large as those where parse time is significant".

So let's say a large file is one whose parse time is > 10 seconds.

So, while looking at small, ie. < 10 second parse time files, if a JSON parser takes files that others load in 500ms and load them in 20ms, then that's "a significant gain on parse speed of small JSON documents"...

We didn't have to change any of the definitions...

Re:PyPy's New JSON Parser by umvi on Tuesday October 08, 2019 @01:56PM (#21195038)
Well, Python2 -> Python3 introduced a dramatic performance increase, even for small JSON documents.
Re:PyPy's New JSON Parser by IanCal on Tuesday October 08, 2019 @03:37PM (#21196271)
These were small though, I just made a small sample of a million of them and still saw a 2x improvement.