DEV Community

danielpdev
danielpdev

Posted on

JavaScript start-up performance using JSON.parse

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

Top comments (0)