Question
Bundlers package together many files to create production builds of websites. Answer the following about optimizations they perform to reduce how much code must be sent over the wire, for 10 points each.
[10h] This kind of dead-code elimination, which is most effective on ECMAScript modules, removes whole files or functions from dependencies when it can be statically determined that they’re unused in a bundle.
ANSWER: tree-shaking [accept word forms]
[10m] Modern bundlers concatenate modules into fewer scopes when possible in an optimization named for this term applied to “scope.” In a related optimization known by this term, JavaScript moves declarations of variables to the tops of their enclosing scopes.
ANSWER: hoisting [accept word forms]
[10e] Scope hoisting often leads to performance improvements since it performs this optimization on imported modules. This general compiler optimization replaces a function call with the code inside the function.
ANSWER: function inlining [accept word forms; or inline expansion]
<Alistair Gray, Other Science - Computer Science>
Summary
2023 Chicago Open | 08/05/2023 | Y | 9 | 5.56 | 22% | 22% | 11% |
Data
BHSU | [moderator voice] yes that is so tenpointscore! is your team feeling bonuspilled? | 0 | 0 | 0 | 0 |
Hang et al., Robert Browning | In Search of Things Past | 0 | 0 | 0 | 0 |
I prefer really not to speak. If I speak I’m in big trouble | Don't be Afraid, the Clown's Afraid Too | 0 | 0 | 0 | 0 |
Romanos IV Diogenes’ Macaroni Grill | The Plague (anime)" was redirected to: "Oran High School Host Club | 0 | 0 | 0 | 0 |
Saint Peter Andre 3000 | Evans Hall destruction awaiters | 0 | 0 | 0 | 0 |
Team Name Think Detail | I would prefer not to | 0 | 0 | 0 | 0 |
The anti-STOON-dahl cabal (the tall Keyal et al.) | Curse you, Periplus the Platypus! | 10 | 10 | 10 | 30 |
The Catastrophic Implosion of Packet Sub | Quasicrystal Silence | 0 | 10 | 0 | 10 |
wave2: trimming membership codes 9655377758gp | Teach Us to Outgrow Our Ladness | 0 | 0 | 10 | 10 |