loading...

JavaScript start-up performance using JSON.parse

danielpdev profile image danielpdev ・1 min read

Original article on v8.dev

This optimization only applies if you have an application where the startup uses a large configuration object > 10Kb.

When you load the application and the object you are using at startup it is > 10kb, then formatting the configuration object as a string and using JSON.parse during running can give you a nice performance improvement (1.7 × as much as possible fast).

JSON.PARSE TRICK

Discussion

pic
Editor guide
Collapse
yujiri8 profile image
Ryan Westlund

Wow... that's really interesting.