How R8 made Kotlin Coroutines on Android 2x faster

- Android 近 90 天出现 32 次
- 上一次:4 天前 · Optimize your apps for the next generation of Samsung Galaxy devices
发生了什么
Posted by Andrei Shikov, Senior Software Engineer, Android Toolkit and Jonathan Starup, Software Engineer, R8 Team Starting from AGP 9.2.0, R8 optimizes most Atomic*FieldUpdater calls into Unsafe variants that perform 2x to 4x better on common operations . This has a particularly large impact on the kotlinx.atomicfu library that implements atomics for kotlinx.coroutines , making launching and cancelling coroutines u…
摘要按规则整理自下方来源原文