[SailfishDevel] Delegate creation on demand

christopher.lamb at thurweb.ch christopher.lamb at thurweb.ch
Sun Dec 15 09:01:54 UTC 2013


Hi Hendrik

Have you seen this? http://qt-project.org/wiki/Performance_tip_Lists

The general advice is to keep the delegates is lightweight as  
possible, and to use Loaders for anything needed later (e.g. onClick)

Chris

Zitat von "Hendrik Borghorst" <hendrikborghorst at gmail.com>:

> Hello folks,
>
> I've got a problem with long lists (~25000 elements). All delegates are
> created at once which causes the memory usage to explode beyond the
> devices capability.
>
> I already tried setting "cacheBuffer: 0" in SiliciaListView but  it
> doesn't change it.
>
> Is the something I'm doing wrong.
>
> You can see the actual page code here:
>
> https://github.com/djselbeck/smpc/blob/master/pages/CurrentPlaylistPage.qml
>
> Shouldn't the delegates be constructed on demand? It is weird because my
> old n8 wasn't struggling with qml lists with this size.
>
> greetings and congrats on getting the devices to your customers (I'm
> very pleased)
>






More information about the Devel mailing list