18. Helping Compressors
① Use local variables to store:
1. Repeated primitive values
2. Global variables
3. Object properties
Good practices for YC and GC both.
19. Helping Compressors
② Try to have only one var statement:
Good practice for YC.
Unneccessary for GC.
36. Summary
• YC is more reliable.
• GC is amazing, and almost safe at simple
optimization level.
• GC is promising, but unsafe at advanced
optimization level.