https://bugs.kde.org/show_bug.cgi?id=501773

Ken Rushia <k...@kenrushia.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Albums-IconView             |general

--- Comment #3 from Ken Rushia <k...@kenrushia.com> ---
The problem is calculating the total size of all DISPLAYED items every time the
selection is changed. Removing this loop eliminates most of the lag for me:


    for (const ItemInfo& info : std::as_const(listAll))
    {
        // cppcheck-suppress useStlAlgorithm
        listAllFileSize += info.fileSize();
    }

As currently seen at 
https://invent.kde.org/graphics/digikam/-/blob/master/core/app/main/digikamapp.cpp#L693-697

This loop might have less observable impact if using the baloo code path (I
don't have baloo).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to