Reprint good articles

1. Common garbage collection algorithms

  • Reference counting method

    • The principle of
    • advantages
    • disadvantages
  • Mark clearance

    • The principle of
    • advantages
    • disadvantages
  • Label finishing

    • The principle of
    • advantages
    • disadvantages
  • Generational recycling

    • The principle of
    • advantages
    • disadvantages

2.V8 engine garbage collection

  • The principle of
  • advantages
  • disadvantages

3. Advanced use of Performance to optimize code

  • The Performance sequence diagram monitors memory changes
  • Use heap snapshots to find detached DOM
  • Find the time function using Performance

4. Optimize JS code with tools

  • benchmark
  • lighthouse
  • jsperf