~/talk

Extreme JavaScript Performance

Talkat JSConf.eu 2009 · 2009-11-07..11-08· [javascript, web-performance]
slides:none on file

Argues concrete micro-optimizations with measurements: inlining function calls and inlining instead of repeated calls removes call overhead, unrolling loops yields 2x–5x speedup in examples, coercing strings to integers with bitwise ops beats parseInt, caching globals helps some engines, and using try/catch or with forces slower fallback code making some engines ~10x slower under JIT. Benchmarks run in JS with new Date().getTime for 100k–1M iterations and Closure compiler sometimes breaks code.

AI-written summary · about

  1. 0:00Introduction
  2. 1:00Performance
  3. 3:00Speed
  4. 4:00Function Calls
  5. 6:00IE Performance
  6. 7:00Embrace the language
  7. 8:00Performance comparison
  8. 12:00Loops
  9. 16:00IE
  10. 17:00Beef Statement
  11. 18:00Trycatch
  12. 19:00Modern engines
  13. 20:00Strict mode
  14. 22:00JavaScript introspection
  15. 24:00JavaScript book
  16. 25:00JavaScript measurements
  17. 26:00JavaScript benchmark functions
  18. 27:00Optimization tools
  19. 28:00Google Closure
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.