diff options
author | Marc-Andre Laperle | 2020-08-16 23:45:38 +0000 |
---|---|---|
committer | Marc-André Laperle | 2020-08-24 03:18:40 +0000 |
commit | a9b67d0828267919e63c3ef78da24db936e45a25 (patch) | |
tree | 3695984fe03276ac0fc7d25475283921bc5d3fdb /build | |
parent | 68c9b53de068aa58b95403dd3b1babe741d6fb09 (diff) | |
download | org.eclipse.cdt-a9b67d0828267919e63c3ef78da24db936e45a25.tar.gz org.eclipse.cdt-a9b67d0828267919e63c3ef78da24db936e45a25.tar.xz org.eclipse.cdt-a9b67d0828267919e63c3ef78da24db936e45a25.zip |
Bug 565553 - Improve performance of build command parsers with large number of files
Optimize MSVCBuildCommandParser.unescapeString.
Instead of running a Matcher/replaceAll every time, check first if the
string contains the characters to unescape first. Finding a substring in
a string is much faster than matching a pattern so this saves quite a
bit of time on large MSVC projects since many options will not have the
characters needed to be unescaped.
Change-Id: If2ad7892c29374458d5de446d4492ce3ba576c9c
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
Diffstat (limited to 'build')
0 files changed, 0 insertions, 0 deletions