Skip to content
  • Nicolas Fella's avatar
    Optimize ArchiveModel::cleanFileName · b9e0da8c
    Nicolas Fella authored
    Summary: Creating the QRegularExpression is expensive and cleanFileName is called for each entry. By not re-creating the regex we gain a significant archive load time improvement
    
    Test Plan:
    {F7786657}
    
    Left is before, right is after. Note the red block on the left that isn't present on the right
    
    Reviewers: #ark, elvisangelaccio
    
    Reviewed By: #ark, elvisangelaccio
    
    Subscribers: elvisangelaccio, kde-utils-devel
    
    Tags: #ark
    
    Differential Revision: https://phabricator.kde.org/D25565
    b9e0da8c