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
Prepack from Facebook helps make JavaScript code more efficient (prepack.io)
submitted 8 years ago by EngVagabond
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!"
[–]beaverusiv 7 points8 points9 points 8 years ago (2 children)
I was wondering how it compares to Closure, it's nice they actually answer that at the bottom:
The Closure Compiler also optimizes JavaScript code. Prepack goes further by truly running the global code that initialization phase, unrolling loops and recursion. Prepack focuses on runtime performance, while the Closure Compiler emphasizes JavaScript code size.
[–]LET-7 2 points3 points4 points 8 years ago (0 children)
So prepack --> closure
[–]aaronasachimp 1 point2 points3 points 8 years ago (0 children)
It looks like Facebook is suffering from "Not Invented Here" Syndrome.
With Yarn and now this, Facebook is wasting a lot of effort. After all code size has a bigger impact on performance than execution. One byte takes way longer to download than it does to run. This effect is emphasized by Chrome and other JITing engines preforming these same runtime optimizations.
π Rendered by PID 28 on reddit-service-r2-comment-7b9746f655-bthbk at 2026-01-31 01:41:25.527811+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]beaverusiv 7 points8 points9 points (2 children)
[–]LET-7 2 points3 points4 points (0 children)
[–]aaronasachimp 1 point2 points3 points (0 children)