César
banner
cesards.com
César
@cesards.com
Computer Engineer. Staff Android Eng @Tinder. Software Craftsman Apprentice. Writing Code for Humans. All opinions are my own. 🇪🇸 🇬🇧 🇺🇸
Educational!
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 23, 2024 at 1:14 AM
Reposted by César
Here is a recording of my Droidcon London 2024 titled "Gradle: The build system that loves to hate you"
www.droidcon.com/2024/11/22/g...
Slides here:
speakerdeck.com/aurimas/grad...
Gradle: The Build System That Loves To Hate You
Come to hear a talk about dozens of foot guns in Gradle that can make you tear your hair out as you try to "just make it work", presented by someone who has stepped on most of the rakes.
www.droidcon.com
November 22, 2024 at 9:23 PM
Reposted by César
Y'all know how much I love working with coordinate geometry so I wrote about my experience building telephoto.
Building a sub-sampling image viewer for Compose UI
How do you display a 100mb image on Android without running into OutOfMemoryError? You can’t. But you can cheat.
saket.me
August 10, 2023 at 3:35 AM
Reposted by César
Threads Privacy Report knows more about me than me own mum! 👀
July 4, 2023 at 2:12 AM
Reposted by César
“Twitter, but run by Facebook” seems like the only possible way to make Twitter worse than it is now.
July 5, 2023 at 11:52 AM
helloWorld()
July 3, 2023 at 2:33 AM