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 …
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 …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
-
-
Q: "does this trick make sense when all the keys in object literal are quoted?" A: Yes, it does.
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
-
Č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.