Diffusion KWin 2c7b1cf76206

From 22% of cpu in hasTransientInternal to 0.2x%

Authored by jtamate on Jan 22 2018, 7:15 PM.

Description

From 22% of cpu in hasTransientInternal to 0.2x%

Summary:
According to callgrind, checking kwin in release with debug symbols,
22% of cpu time in the method hasTransientInternal is spent doing
a cast to Client *, while at the begining of the method, the cast to
const Client * only uses 1.0x%.

Test Plan:
The workload was just show 50 messagebox copying small files and being
unable to change the permissions.

Reviewers: KWin

Subscribers: kwin

Tags: KWin

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

Details