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 …
-
-
How are you measuring this exactly? Have you tried running our benchmark with your data?
-
My data is a big object made as a js export in a file, webpacked. I turned the object in a json string and i exported json parse of the string. Everything is still webpacked and lazy loaded. i expected to see a smaller parse time when this file is loaded.
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.