Andrei Shikov

Results 35 comments of Andrei Shikov

@THEAccess We did already Currently it is delayed a bit, as the idea is to go a little bit further and support multiplatform as well. See #90

Hi @kyhule , sorry for long reply times :) It is intended by design to have middleware added before the feature. The general idea is to create them before anything...

For reference: **screencap + Flipper layout view** ![image (1)](https://user-images.githubusercontent.com/6198744/148986411-f651c480-ade0-4231-b01c-acda476655f0.png)

Hi, one of the Compose devs here :) Could you share a bit more about performance problems you have encountered? I am not personally familiar with Compose integration for Maps,...

@kikoso stability by itself does not result in performance problems that often, I doubt this is the cause here. I suspect the problem is in heavy content used for clusters....

I ran a quick profile on the clustering sample with 1000 items. I think the new strategy that changes the viewport should help quite a lot, as it creates less...

It looks like atomicfu supports [generating `VarHandle` based](https://github.com/Kotlin/kotlinx-atomicfu/blob/master/atomicfu-gradle-plugin/src/main/kotlin/kotlinx/atomicfu/plugin/gradle/AtomicFUGradlePlugin.kt#L475) references (which are used for `AtomicReference` implementation in Android). This implementation should be significantly faster than current `Atomic*FieldUpdater` one based on the...

My suggestion was to maybe introduce a separate Android target, but I guess it is not going to work for consumers that ship JVM-only as well. I wonder how well...

Right, disregard my `VarHandle` suggestion then. I am still concerned that AtomicReference performance is way better though, so probably worth investigating how it works on previous versions of Android.

As I suspected, older versions of Android [use `Unsafe`](https://cs.android.com/android/_/android/platform/libcore/+/dedcf311920a432c4a5fbc32dab60bc749c461ff:ojluni/src/main/java/java/util/concurrent/atomic/AtomicReference.java;bpv=1;bpt=0;drc=cc42201b8d47d4c03a69dcf6df4e58c1a11d32e5;drf=luni%2Fsrc%2Fmain%2Fjava%2Fjava%2Futil%2Fconcurrent%2Fatomic%2FAtomicReference.java) to perform these operations.