How Not to Write Slow Scala
summary
Benchmarks use SBT jmh and the repo shows concrete numbers: prepending to lists is often fastest while appending to Seq can be twice as slow, arrays of primitives are byte‑packed and run an order of magnitude faster than boxed collections, Stream and some functional chains do not fuse so Iterator wins for lazy fusion, Vector pays construction cost unless built with a VectorBuilder, and careless patterns with Future or mapValues produce 10x–1000x slowdowns in real cases.
AI-written summary · about
chapters (5)
related talks
49mNumbers every Scala programmer should know
48mHigh performance Scala systems without tears
23mThe Future of Scala Performance on Big Data
39mExtreme Cleverness: Functional Data Structures in Scala
45mEffective Scala
42mWhat Scala can learn from Rust, Swift, and C++
21mReasonable Scala Compiler
41mEffective Scala
