~/talk

Is scala code slow?

Talkat Scala.IO 2016 · 2016-10-27..10-28· [web-performance]
slides:none on file

Claims are concrete: a one-line Scala rewrite can be measurably slower (author shows a 3× example) and small edits yield 4–7× gains. Demonstrations include JMH and perf-guided assembly dumps, HotSpot behaviours like loop unrolling at 16, bytecode vs assembly for pattern matching and tail calls, and collection pitfalls where boxing causes gigabytes/sec of GC churn. Examples compare while loops, pattern match, tail recursion and Scala collections across Scala 2.11/2.12 so you see what was built and what actually worked.

AI-written summary · about

  1. 0:00Start
  2. 4:28HIT THE COMPILE BUTTON
  3. 7:17IF VS PATTERN MATCHING
  4. 12:09WHAT ABOUT OPTIONS?
  5. 15:52MEET FIBONACCI
  6. 17:49BYTECODE TO THE RESCUE!
  7. 18:15FIBONACCI WITH TCO
  8. 24:39LOOP UNROLL
  9. 30:07LOOP PERF COUNTERS
  10. 30:49LIST VS ARRAY
  11. 32:23GC PROFILING RESULTS
  12. 32:43APPLES VS ORANGES
  13. 35:522.11 DESUGARED
  14. 41:07THE END
~/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.