Delayed icon loading in KFileItem and dolphin

Frank Reininghaus frank78ac at googlemail.com
Thu Mar 28 13:00:59 GMT 2013


Hi,

2013/3/27 Pierre Sauter:
> Hi David,
>
> thanks for implementing this!
>
> I tested it and it works nicely.
>
> If this is committed you can close
> https://bugs.kde.org/show_bug.cgi?id=290666
>
> (Sorry I can't comment there as I have no account on the bugtracker atm)
>
> Regarding an actual slow mount:
>
> I mounted a thumbnail folder over our 100Mbit intranet per sshfs.
> (I guess thats not really slow)
>
> It has ca. 140000 pngs.
> ls -l takes about 10 seconds
>
> When I open the folder in dolphin in detailed list view it takes about the
> same amount of time to display something. dolphin causes some cpu load for
> another minute until all icons are loaded.
>
> I guess this is the desired behaviour.

at the moment, we indeed determine mime types, icons and/or previews
asynchronously for *all* items, which can make the CPU and hard drive
busy for quite some time. I'm actually planning to change this and
only do that for the items that are either currently visible or
reachable by scrolling up/down one or two pages or by pressing
Home/End. I hope that I will get it done in time for KDE 4.11. The
current approach is a huge waste of resources in directories with many
items because it's extremely unlikely that the user will scroll
through all of them.

Best regards,
Frank




More information about the kfm-devel mailing list