JavaScript start-up performance using JSON.parse

danielpdev

danielpdev

Posted on March 22, 2020

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

💖 💪 🙅 🚩
danielpdev
danielpdev

Posted on March 22, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related