~/talk

The Things Scala js Does to Make Your Code Fast

Talkat Scala Days Berlin 2016 · 2016-06-15..06-17· [javascript, web-performance]
slides:none on file

Scala.js compiles idiomatic Scala into JavaScript and an optimizer turns heavy abstractions into tight loops: a Range-based for becomes a raw while so performance matches hand-written code (non-optimized for was ~1.64 vs optimized ~0.12). Long arithmetic remains costly — about 100× slower for Longs — and requires library emulation. Collection map and lambdas get closure elimination and inlining so two chained maps run close to the manual double-while, while trait concrete methods use multi-inlining to remove bridge dispatch. Node.js and Closure Compiler appear in the toolchain; benchmarks are small, generated code is trusted.

AI-written summary · about

  1. 0:00Intro
  2. 3:30Benchmarks
  3. 4:35generative code
  4. 9:50longs
  5. 13:15map
  6. 16:54speed test
  7. 23:55trades
  8. 26:48Optimization
  9. 28:34Results
  10. 33:18Closure Elimination
  11. 36:16Scala Optimizer
  12. 46:44Questions
~/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.