{ "//comment": "done!" }
-
-
new Response(text).json() (but currently this is slower than JSON.parse)
-
That parses it off the main thread? Not just asynchronously? Cool! I assume it doesn't require copying the data an extra time, since presumably Response is written not to need to do that copy in the usual fetch case...
- 7 more replies
New conversation -
-
-
Switch to a non-blocking JSON parse really won't save too much perf wise beyond not blocking the main event loop thread. You'll see more benefit from an incremental/pull parse model.
-
It's the "not blocking main event loop" part I'm interested in.
- 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.
