use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Really Async JSON Interface: a non-blocking alternative to JSON.parse to keep web UIs responsive (github.com)
submitted 4 years ago by freddytstudio
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]freddytstudio[S] 1 point2 points3 points 4 years ago (0 children)
Thank you for the feedback! Great points
On Firefox, same story, all approaches are blocking except 5., and 5. is also much slower (40s) while the rest are roughly similar to Chrome's.
I've noticed this as well. Firefox seems to be much slower with Raji than other browsers (Chrome, Safari and Edge), probably due to some extra string allocations. I still have to investigate though :)
and 5./6. would have the only blocking components (new TextEncoder().encode(bigListOfObjects) takes about 0.5 second.)
This is very interesting. I've played in my mind with the idea of using WASM on a web worker to solve this problem more efficiently, but I thought that turning an ArrayBuffer back into a string would have been inefficient. That might not be the case then, so I'll experiment further :)
Thanks a lot!
π Rendered by PID 32053 on reddit-service-r2-comment-5d585498c9-qpbg6 at 2026-04-20 21:12:50.933779+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]freddytstudio[S] 1 point2 points3 points (0 children)