Perf: Do expensive regexp construction earlier
Summary: SystemTray::serviceRegistered is called tons of times; the regexp construction inside the for-loop is expensive and should be avoided. Thus construct the regexp once, and re-use the regexp object each time. Test Plan: Before: {F6432674} After: {F6432675} Reviewers: davidedmundson Reviewed By: davidedmundson Subscribers: apol, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D17025
parent
e2ba40a4
Please register or sign in to comment