Kotlin 1.9.20 Improves Object Swarm Garbage Collection

Tom Smykowski
1 min readDec 9, 2023

Kotlin 1.9.20 garbage collects small objects faster than ever before

Kotlin 1.9.20 was released on November, 1, 2023. But let’s recap what’s new, because I didn’t cover that release:

The last one is my favorite. It consists of two subchanges:

The latter one is an interesting improvement. Because now Garbage Collector tracks areas instead of object. So if you have a lot of small objects in your app, the GC overheat will be reduced with Kotlin 1.9.20, because scheduler tracks areas of allocation rather than allocations for every single instance of an object created.

Worth mentioning it’s an improvement for Kotlin/Native.

Subscribe for more Kotlin and coding news and articles!

Source

--

--

Tom Smykowski
Tom Smykowski

Written by Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.

No responses yet