DEV Community

danielpdev
danielpdev

Posted on

2 3

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay