u/ConfidentMushroomin r/Frontend • Recommends
TIL JSON.parse is faster than js object literal
#json.parse#v8#javascriptperformance
822K subscribers • 20 videos on Hallway
Intermediate. Assumes working knowledge.
315K views6 years ago1 recommendation
Web developmentSystems programmingWeb performanceJavaScript
Mathias Bynens explains why parsing JSON is faster than parsing JavaScript object literals and how to leverage this for performance.
Because the JSON grammar is much simpler than JavaScript’s grammar, JSON can be parsed more efficiently than JavaScript. This knowledge can be applied to improve start-up performance for web apps that ship large JSON-like configuration object literals (such as inline Redux stores). Presented by: Mathias Bynens - goo.gle/2Oh2tq6 More info → goo.gle/33czWGH #ChromeDevSummit All Sessions → goo.gle/CDS19 Subscribe to Google Chrome Developers → goo.gle/ChromeDevs Event photos → goo.gle/CDS19Photos event: Chrome Dev Summit 2019; re_ty: Publish; product: Chrome - General; fullname: Mathias Bynens;What people say. Highly recommended for explaining the performance benefits of using JSON.parse over JavaScript object literals.
u/ConfidentMushroomin r/Frontend • Recommends
u/SamchonFrameworkin r/typescript • Mentions
On “A new library creating object 1.5 ~ 2x faster through JSON.parse()”