News for hackers. Stuff that matters.
Re:The Cost of JavaScript in 2019 by taylorlapeyre on Sunday June 30, 2019 @12:55PM (#20319117)
Since JSON’s syntax is much simpler and smaller, it’s faster to parse a very large object as JSON and return the newly built JavaScript object rather than parse the object tree in JavaScript, which has a much more complex syntax parser. Obviously there’s diminishing returns for smaller and smaller objects.

There are no comments on this comment yet.