demn
demn.shy.cat
demn
@demn.shy.cat
demn.dev

github.com/demndevel
did this shit: demn.dev
November 21, 2025 at 10:39 PM
Reposted by demn
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
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...
github.com
November 22, 2024 at 6:06 PM
😀
November 15, 2024 at 10:20 AM