nicklockwood / FXForms

[DEPRECATED]
Other
2.93k stars 339 forks source link

Cells cache #435

Open petalvlad opened 8 years ago

petalvlad commented 8 years ago

I've noticed that scrolling is choppy and not smooth for forms which consist of custom cells with not trivial layout logic and AutoLayout enabled. The reason for that is calling update: each time cell is going to be displayed.

As far as FXForm doesn't use cells recycling, I suggest very dumb but simple solution - just cache already created cells into NSCache and flush this cache when needed. This is not by default and only enabled if a user set cacheCells to YES.

Looks like this also addresses #314.