1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-07 02:23:18 +02:00
cdt/build/org.eclipse.cdt.managedbuilder.core
Marc-Andre Laperle 08e8e57162 Bug 565553 - Improve performance of build command parsers with large number of files
Narrow down parsers based on option string

Instead of trying to match all patterns one by one, we can check the
start of the option string to be parsed and narrow down which pattern
(parsers) should be used.

Doing so is much less elegant code-wise as we are "unrolling" the
beginning of the patterns by hand, but it gives a good speed up. Around
300ms saved with a test of LLVM code base (~50% of parseOption time) and
much larger gains on much larger projects or course.

Change-Id: I9e841e7233078d6e38ad08943d98966d0e3c661e
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-04 14:29:11 -04:00
..
.settings Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projects 2020-08-30 20:02:41 -04:00
META-INF Bug 565553 - Improve performance of build command parsers with large number of files 2020-10-04 14:29:11 -04:00
schema Bug 550076 - Use PE64 parser by default 2019-09-09 15:56:07 -04:00
src/org/eclipse/cdt Bug 565553 - Improve performance of build command parsers with large number of files 2020-10-04 14:29:11 -04:00
.classpath Bug 562494: Update BREE to Java 11 2020-08-24 17:50:56 -04:00
.options Add missing buildModel tracing option 2015-10-22 15:24:47 -04:00
.project
about.html Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh 2018-11-22 20:31:51 +00:00
build.properties Bug 540373: Cleanup: Remove trailing whitespace in properties files 2018-11-23 07:52:26 +00:00
plugin.properties Bug 548730 - Compilation database (CDB) language settings provider 2019-10-23 21:47:54 -04:00
plugin.xml Bug 548730 - Compilation database (CDB) language settings provider 2019-10-23 21:47:54 -04:00