unsplash/swiftui-lazycollectionview

Resizing demo app with large amount of items is extremely slow

Opened this issue · 0 comments

Hi all! Really like this library and want to use it in one of my own apps.

When running the demo app with a large amount of items (edited the ItemStepper array to support 100.000, 250.000 and 500.000 items), the application gets extremly slow to resize. This is very macOS specific and as you said inside the README, macOS is not tested that much, I would really like to use it and support where I am able to.

I currently run macOS 14, on a M2 Pro Mac Mini. RAM usage spikes up, but this is expected due to amount of items. Still, around 99% CPU usage when resizing the window.

Starts slowly with 50.000 items, increases at 100.000 exponentially and hits a peak at 500.000 items...

Bildschirmaufnahme.2024-06-29.um.16.12.43.mov