Faster Scala Collections with Scalaxy/Streams!
summary
Scalaxy/Streams delivers a concrete optimizer: a compiler plugin and macros that rewrite chained collection ops into tight while loops, doing side-effect analysis with trusted-API whitelists and offering safe / aggressive / foolish strategies. Microbenchmarks show common speedups (10×, sometimes 50×) and iterators remain 5–20× slower; jar size falls ~5–7% and example code size drops up to 60%. Implementation uses quasiquotes, symbol/type hacks, reflection to reparent owners and ahead-of-time typing; the plugin already handles most of the Scala library.
AI-written summary · about
chapters (7)
- 0:00Start
- 7:25What Is the Stream
- 8:18How Do You Recognize a Stream
- 9:05Removing Topples
- 10:30Side Effects
- 13:34Immutable Collections
- 26:03Ahead of Time Banking
related talks
50mIs scala code slow?
54mThe Things Scala js Does to Make Your Code Fast
35mFast startup & low latency: pick two
59mLet's Get Lazy
49mNumbers every Scala programmer should know
30mThe Future of Scala Performance on Big Data
43mDotty Linker: Precise Types Bring Performance
23mFast by default: algorithmic performance optimization in practice
