Commit 5bf2c3aa authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Rolf Eike Beer

optimize CMakeBuildDirChooser::buildDirSettings()

Summary:
-if we have a match for a key, no other key can match
-match the start of a new line as QByteArray instead of QString, most lines will
 not match and all keys are plain ASCII, this saves a lot of needless
 conversions and memory allocations
-modify the original line instead of doing a copy, the original one will not
 be used again anyway.

Test Plan: Open and build a CMake-based project.

Reviewers: mwolff

Reviewed By: mwolff

Subscribers: mwolff, apol, kdevelop-devel

Tags: #kdevelop

Differential Revision: https://phabricator.kde.org/D18857
parent 3c2725a6
Pipeline #1095 failed with stage
in 60 minutes