You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Gets super laggy if using variable sized (height) cell, which is pretty common. Seems like PrepareLayout keeps getting called on scrolling, which in turn tries to find the height for EACH one of the 10000 cells...
Experienced a similar problem: basically as soon as we've implemented sizeForItemAtIndexPath the UI would become laggy with many elements (50'000+).
It doesn't matter what the implementation looks like though, even if we return a reference to always the same "size" the performance would degrade. If I remove the implementation then performance is good again.
cc @fresswolf
Gets super laggy if using variable sized (height) cell, which is pretty common. Seems like PrepareLayout keeps getting called on scrolling, which in turn tries to find the height for EACH one of the 10000 cells...
NSLog(@"height for row:%i", indexPath.row);
return CGSizeMake(self.view.frame.size.width, 44);
}
The text was updated successfully, but these errors were encountered: