Skip to content
  • Kevin Funk's avatar
    Perf: Do expensive regexp construction earlier · a46179d9
    Kevin Funk authored
    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
    a46179d9