Thank you for introducing https://github.com/nd-02110114/babel-plugin-object-to-json-parse …
Feedback is welcome from everyone 
-
-
-
Thank you for creating the plugin!
End of conversation
New conversation -
-
-
Is there a jsperf (or similar repro) for that? Tried with ±200kb serialised redux state from real APP and JSON.parse appeared to be a bit (20% to none) slower. Also does this trick make sense when all the keys in object literal are quoted?
-
Did you watch the video? We point to the benchmark on GitHub around the 04:58 mark:https://www.youtube.com/watch?v=ff4fgQxPaO0&t=04m58s …
End of conversation
New conversation -
-
-
i tried a couple of time with my 2.8 megs json object did not manage to see an improvement in my flame graph. Every time someone tweets this i go and try again.
-
How are you measuring this exactly? Have you tried running our benchmark with your data?
- 1 more reply
New conversation -
-
-
That's Nice! Could I benefit of this on node/express receiving a massive payload in a post?
-
I may be wrong but the payload from a request is already a string and express apps are probably just json-parsing it. So you are already done.
- 1 more reply
New conversation -
-
-
Does this JSON.parse optimization offer any benefit once code caching kicks in? It seems to reduce the large parse cost in favour of slightly greater execution cost. But when code caching, JS parsing is almost free, whereas execution cost still matters.
-
Did you see the benchmark referenced in the talk? It includes warm load tests: https://github.com/GoogleChromeLabs/json-parse-benchmark/blob/7ffba303e10910faa93cab2ba9bd643c8686a995/bench.sh#L37-L40 … cc
@leszekswirski@tverwaes for code caching insights specifically - 5 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
For large JSON-compatible objects, JSON.parse is faster than JS object literals.
True for all browser JavaScript engines!
My