Kotlin 2.5's full value classes didn't get any faster on my machine

Kotlin 2.5's full value classes didn't get any faster on my machine

Same two doubles: a value class has 5 fewer methods and 21% less bytecode, yet the same arithmetic over 20M points ran 4.6% slower.

2026-12-03 · 6 min · 1208 words · Trevor Wang