Jake Wharton personal blog

Which is better on Android: divide by 2 or shift by 1?

I've been porting the AndroidX collection library to Kotlin multiplatform to experiment with binary compatibility, performance, tooling, and the different memory models. Some of the data structures in the library use array-based binary trees to store elements. The Java code has a lot of shifts to replace power-of-two…
Points
148
HN comments
110
Submissions
1
Cited by
0 commenters

Systems & PerformanceSoftware Engineering2020

On Hacker News

SubmittedTitle on HNPointsComments
Apr 23, 2020Which is better on Android: divide by 2 or shift by 1? by zdw148110

More from Jake Wharton

All 2 posts →

Related posts from the same era