~/talk

Perf the web forward!

Talkat JSConf US 2013 · 2013-05-28..05-30· [web-performance, javascript]
slides:none on file

Concrete, actionable fixes and measured wins: use createCallback hoists .call out of loops to make the no-context common case a straight call, use function source detection to avoid bind when a callback never references this, replace repeated indexOf searches with a hybrid object/array cache cuts large-array threshold to 75 (previously ~200) for big wins, and prefer deferred evaluation for long chains so iteration drops to the few final items. Benchmarks use jsperf / benchmark.js and jQuery event iteration shows ~18% improvement with these tweaks.

AI-written summary · about

  1. 0:00Intro
  2. 0:21Perf The Web Forward
  3. 4:27Hoist call & apply
  4. 9:51Avoid binding
  5. 14:12Reduce searches
  6. 19:35Coerce with Care
  7. 23:00Sugar in moderation
  8. 26:53John-David Dalton
~/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.