~/talk

Fast by default: algorithmic performance optimization in practice

Talkat dotJS 2019 · 2019-12-05..12-06· [web-performance, javascript]
slides:none on file

Practical specifics: Chrome DevTools profiling isolates a source-map hotspot in Rollup where magic-string generates then decodes a map — removing the double conversion speeds source-map generation ~40%. Rewriting a decoder to stream characters removes allocations and runs ~3× faster. Replacing naive scans with binary search yields ~40× speedups in a heavy case; a coverage tool gains ~15× by switching line keys to zero-based. Ports to Rust/C++ hardly beat carefully tuned JavaScript; spatial indexing like kdbush shows what actually gets built and that it works.

AI-written summary · about

  1. 0:00How I got here
  2. 2:25The fastest libraries
  3. 6:32How to make fast code
  4. 17:05logarithmic complexity
  5. 18:51optimization
  6. 19:26data structure
~/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.