iBaryo / js-perf-lecture

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Performance fun

Memory Management

Memory Access

Bitwise operator

  • binary numbers
  • bitwise operators
    • shift left <<
    • AND &
    • OR |
  • example: bitwise vs memory access

Data Locality

  • CPU cache
  • cache hit
  • example: local vs far access

Memory Allocation

  • naive allocation
  • create and throw
  • object pool
  • (js only) object literals mappings

Event Management

  • event streams
  • patterns:
    • debounce
    • throttle

About


Languages

Language:TypeScript 100.0%