[FrameData] Avoid iterating keys()

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

Description

[FrameData] Avoid iterating keys()

Instead use iterators. Could be changed to using keyBegin or something like that potentially.

The destructor is called 400 times on plasmashell startup for me.
Before: 250,000ns
After: 110,000ns

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

Details

Committed
broulikJan 30 2017, 2:08 PM
Differential Revision
D4350: [FrameData] Avoid iterating keys()
Parents
R242:fe3990556046: [Containment Interface] No need for values() as contains() looks up keys
Branches
Unknown
Tags
Unknown