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>

Back to bonuses

Summary

2023 Chicago Open08/05/2023Y95.5622%22%11%

Data

BHSU[moderator voice] yes that is so tenpointscore! is your team feeling bonuspilled?0000
Hang et al., Robert BrowningIn Search of Things Past0000
I prefer really not to speak. If I speak I’m in big troubleDon't be Afraid, the Clown's Afraid Too0000
Romanos IV Diogenes’ Macaroni GrillThe Plague (anime)" was redirected to: "Oran High School Host Club0000
Saint Peter Andre 3000Evans Hall destruction awaiters0000
Team Name Think DetailI would prefer not to0000
The anti-STOON-dahl cabal (the tall Keyal et al.)Curse you, Periplus the Platypus!10101030
The Catastrophic Implosion of Packet SubQuasicrystal Silence010010
wave2: trimming membership codes 9655377758gpTeach Us to Outgrow Our Ladness001010