-
Ran tests on this JSON.parse could be faster than a large JS blob. Shy of 600K of pure JS object (same if JSON), with a 6x CPU slowdown: - JSON.parse: 30ms to evaluate & compile - Plain JS object: 18ms Unless this is a canary currently feature, I can't see the benefits myself.
-
Of course, I don't doubt that Chrome team did research to come to that finding - so there must be something in it somewhere. Just bears repeating: validate your own performance changes.