compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

LazyColumn and LazyRow are very slow only on iOS

Open vivaCoda54 opened this issue 1 year ago • 1 comments

Describe the problem Scrolling my lazycolum/lazyrow is very slow on iOS. It's very fluid on Android, but everything feels like it's slowing down on ios.

Affected platforms Select one of the platforms below:

  • iOS

Versions

  • Kotlin version: 1.9.21
  • Compose Multiplatform version: 1.5.12

vivaCoda54 avatar Feb 18 '24 22:02 vivaCoda54

Hello! Thanks for an Issue! Can you please provide a minimal reproducible sample there we can see a big difference between Android and iOS?

dima-avdeev-jb avatar Feb 19 '24 11:02 dima-avdeev-jb

Hello @dima-avdeev-jb , this is a sample with the lag. Tell me if you succeed to get it (it's on a drive) If not, I will put it on github but I prefer to avoid this. https://drive.google.com/file/d/1KibJSEWI99U_OtaGZPGKWCAabXuIxlkl/view?usp=sharing

vivaCoda54 avatar Feb 20 '24 11:02 vivaCoda54

I'll have a look!

elijah-semyonov avatar Feb 20 '24 11:02 elijah-semyonov

Hello @elijah-semyonov did you have time to look ?

vivaCoda54 avatar Feb 26 '24 10:02 vivaCoda54

Not yet, I'll post my findings when I'm done with it.

elijah-semyonov avatar Feb 26 '24 11:02 elijah-semyonov

@elijah-semyonov @dima-avdeev-jb Following the release of version 1.6.0 of compose multiplatform I've changed the way resources are displayed, just to see. I used to use moko resources. I modified everything to use the more native way with the new Res. And now, miraculously, it works great, it's fluid as ever. The problem is solved, it was moko that was causing the slowdown.

vivaCoda54 avatar Mar 01 '24 15:03 vivaCoda54

@vivaCoda54 by any chance u have a migration guide

aldefy avatar Jun 05 '24 08:06 aldefy