Review Request 126818: Cache QX11Info::appRootWindow in eventFilter

Kai Uwe Broulik kde at privat.broulik.de
Tue Jan 19 23:28:19 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/126818/#review91355
-----------------------------------------------------------



+1

Purely unscientific measurement through ksysguard shows that this halves the CPU usage of plasmashell during a file copy operation.

- Kai Uwe Broulik


On Jan. 19, 2016, 11:21 nachm., David Edmundson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/126818/
> -----------------------------------------------------------
> 
> (Updated Jan. 19, 2016, 11:21 nachm.)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Repository: kwindowsystem
> 
> 
> Description
> -------
> 
> appRootWindow is (relatively) expensive and won't change.
> nativeEventFilter is called a lot
> 
> This should speed things up.
> 
> CCBUG: 356479
> 
> 
> Diffs
> -----
> 
>   src/platforms/xcb/kwindowsystem.cpp 9d287043c24894ca3c29c439c7939b139da055e8 
>   src/platforms/xcb/kwindowsystem_p_x11.h 3fa82a436d7fe12b50f7e8efd7338faf817f6579 
> 
> Diff: https://git.reviewboard.kde.org/r/126818/diff/
> 
> 
> Testing
> -------
> 
> Ran some apps and they seemed to still work.
> Not tested any specific functionality.
> 
> 
> Thanks,
> 
> David Edmundson
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20160119/b8fa80bd/attachment.html>


More information about the Kde-frameworks-devel mailing list