~/talk

How to Improve JavaScript Performance

TalkinSpanishat JSDayES 2015 · on Saturday, 2015-05-09· [javascript, web-performance]
links:none on file
slides:none on file

A browser game was profiled with a 100-run benchmark using a CPU sampler and the IE UI responsiveness tool to find hotspots. Concrete optimizations included object pooling, initializing properties in constructors, using integers and typed arrays, caching DOM lookups, using requestAnimationFrame, and avoiding getters/setters; these changes reduced GC pauses, cut CPU sampling and main-loop time substantially, and kept FPS near 60 (never below 30).

AI-written summary · about

  1. 0:00Introduction
  2. 3:30High Pick game origin
  3. 9:52High Pick game explained
  4. 12:31Browser performance impact
  5. 14:01Profiler tools
  6. 16:28Control memory usage
  7. 22:50Data types impact
  8. 26:52Use integers over floats
  9. 30:05Efficient arrays and loops
  10. 34:43Minimize browser calls
  11. 36:38Optimize animations
  12. 37:21Final results
  13. 38:46Q&A
~/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.