Skip to content
Discussion options

You must be logged in to vote

It's OK I think. Because normally JSON serialization/deserialization will definitely not be the bottleneck of a web app, especially when you have API requests. If you do see a noticeable performance issue (I guess something else is wrong then), you can maybe try https://github.com/fastify/fast-json-stringify.

According to fastify/fast-json-stringify, JSON.stringify execution is 3,172,653 ops/sec for objects, which is 0.0003ms each time. So your React component has to be re-rendered 10,000 times per second (definitely a bug!), so JSON serialization can make the app 3ms slower :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wansaleh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants