demn's Avatar

demn

@demn.shy.cat

demn.dev github.com/demndevel

22
Followers
36
Following
3
Posts
15.11.2024
Joined
Posts Following

Latest posts by demn @demn.shy.cat

you should install ios

21.11.2025 22:40 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0

did this shit: demn.dev

21.11.2025 22:39 ๐Ÿ‘ 3 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0
Preview
Optimize String.toFloatOrNull() by romainguy ยท Pull Request #5364 ยท JetBrains/kotlin The existing implementation used a regular expression which caused memory allocations, which are expensive on mobile devices. In addition, a custom parser can outperform regular expressions. The ne...

JetBrains just merged my contribution to the Kotlin standard library. It's a rewrite of String.toFloatOrNull() to eliminate all allocations (~940 per call!) and go 225x faster on a Pixel 6. If you want to see how it was done: github.com/JetBrains/ko...

tl;dr regex out, hand-written parser in

22.11.2024 18:06 ๐Ÿ‘ 164 ๐Ÿ” 14 ๐Ÿ’ฌ 8 ๐Ÿ“Œ 2

๐Ÿ˜€

15.11.2024 10:20 ๐Ÿ‘ 1 ๐Ÿ” 0 ๐Ÿ’ฌ 0 ๐Ÿ“Œ 0