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
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Apr 23, 2020 | Which is better on Android: divide by 2 or shift by 1? by zdw | 148 | 110 |