feathersui / feathersui-openfl

Cross-platform graphical user interface components for creative frontend projects — powered by Haxe and OpenFL
https://feathersui.com/
Other
160 stars 16 forks source link

ListView: check if any properties of ListViewItemState have actually changed before calling DisplayObjectRecycler.update #143

Closed joshtynjala closed 1 year ago

joshtynjala commented 1 year ago

This probably won't have much impact on performance because item renderers shouldn't invalidate if nothing has actually changed. However, there is a perception that update is being called too frequently, so best to avoid it, if possible.

However, I need to remember to still handle updateAt and updateAll forced updates, even when no properties were changed.

Also applies to other data containers, of course.