[Shell Corona] Avoid iterating keys() and then doing a value() lookup

Authored by broulik on Jan 30 2017, 2:16 PM.

Description

[Shell Corona] Avoid iterating keys() and then doing a value() lookup

Use iterators and their key() and value() methods.

This codepath is hit 200+ times on plasmashell startup for me
Before: 420,000 ns
After: 200,000 ns

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

Details

Committed
broulikJan 30 2017, 2:16 PM
Differential Revision
D4349: [Shell Corona] Avoid iterating keys() and then doing a value() lookup
Parents
R120:5b794504034c: Merge branch 'Plasma/5.9'
Branches
Unknown
Tags
Unknown