Remove dynamic item creation in DefaultListItemBackground

Authored by ahiemstra on Dec 11 2019, 12:48 PM.

Description

Remove dynamic item creation in DefaultListItemBackground

Summary:
For some unknown reason, DefaultListItemBackground uses dynamic item creation
instead of just declaring items for its separators. This patch removes the
dynamic item creation and just declares the separtor. This saves more than
1ms runtime per delegate that gets created in Kirigami Gallery's List View page,
reducing the time per delegate from more than 1ms to ~300us.

Test Plan: Kirigami Gallery's List View page still looks the same

Reviewers: Kirigami, mart

Reviewed By: Kirigami, mart

Subscribers: plasma-devel

Tags: Kirigami

Differential Revision: https://phabricator.kde.org/D25882

Details

Committed
ahiemstraDec 12 2019, 4:53 PM
Reviewer
Kirigami
Differential Revision
D25882: Remove dynamic item creation in DefaultListItemBackground
Parents
R169:525b30209cda: drawerPosition is real
Branches
Unknown
Tags
Unknown