Kai Uwe Broulik
2018-09-10 11:41:43 UTC
broulik created this revision.
broulik added reviewers: Dolphin, ngraham.
broulik requested review of this revision.
REVISION SUMMARY
When there is only one thumbnail it is painted larger. This pixmap is always generated, even if we ended up creating more than one thumbnail.
This patch makes it remember the first valid thumbnail and paints the larger pixmap only as needed.
TEST PLAN
Thumbnails of folders with no, one, or multiple previews are still rendered correctly.
Saves up to 1 second generating the thumbnails here, however, I didn't really notice a huge impact in real world testing
REPOSITORY
R320 KIO Extras
REVISION DETAIL
https://phabricator.kde.org/D15402
AFFECTED FILES
thumbnail/thumbnail.cpp
To: broulik, #dolphin, ngraham
broulik added reviewers: Dolphin, ngraham.
broulik requested review of this revision.
REVISION SUMMARY
When there is only one thumbnail it is painted larger. This pixmap is always generated, even if we ended up creating more than one thumbnail.
This patch makes it remember the first valid thumbnail and paints the larger pixmap only as needed.
TEST PLAN
Thumbnails of folders with no, one, or multiple previews are still rendered correctly.
Saves up to 1 second generating the thumbnails here, however, I didn't really notice a huge impact in real world testing
REPOSITORY
R320 KIO Extras
REVISION DETAIL
https://phabricator.kde.org/D15402
AFFECTED FILES
thumbnail/thumbnail.cpp
To: broulik, #dolphin, ngraham