For large JSON-compatible objects, JSON.parse is faster than JS object literals.
True for all browser JavaScript engines!
Speed-ups from 1.2× to 2×
My #ChromiumDevSummit lightning talk explains why:https://www.youtube.com/watch?v=ff4fgQxPaO0 …
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.
-
Andrea is correct. This technique only applies to things that are embedded within <script> or otherwise evaluated as JavaScript.
Kraj razgovora
Novi razgovor -
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.