Re:The Cost of JavaScript in 2019
by vbezhenar on Sunday June 30, 2019 @04:27PM
(#20320304)
But that only applies to the parsing step. With JSON.parse you will parse it every time the code executes, so if that code is in function, JavaScript probably will be better, because compiler can't just optimize out JSON.parse (because someone might redefine window.JSON object or redefine its parse property).
[ Parent
| on HN ]