Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 326687

Summary: Invoking CDT Builder taking 10-17 seconds for incremental builds
Product: [Tools] CDT Reporter: Curt Dennis <dencur>
Component: cdt-build-managedAssignee: Project Inbox <cdt-build-managed-inbox>
Status: RESOLVED DUPLICATE QA Contact: Chris Recoskie <recoskie>
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse
Version: 8.0   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Thread Dump immediately after building at "Invoking CDT Builder"
none
This is the thread dump when I hit run, while the UI was "Invoking CDT Builder" 15 seconds later. none

Description Curt Dennis CLA 2010-09-30 11:28:11 EDT
Build Identifier: 3.7.0 I20100921-1024

Relating to closed fixed task ticket 318410.  

I have a large C project with about 200 relatively linked source.  When I clean build a project, the CDT builder immediately begins the build process.  Any build that isn't a clean build, there is a 10-17 second delay on my laptop (Core i7 MacBook Pro).  The build window sticks at "Invoking CDT Builder".  If I disable the indexer on the project, this doesn't happen.  To disable the indexer I'm going into Project Properties->C/C++ General->Indexer and unchecking the Indexer option.

The long delays on incremental build stalls workflow.

If someone could share how I can give a stack trace I'd be happy to help.

Reproducible: Always

Steps to Reproduce:
1. Clean Build the project
2. Make a source change
3. Incrementally build the project, Invoking CDT Builder stalls for 10-17 seconds.
Comment 1 James Blackburn CLA 2010-09-30 11:46:22 EDT
Are you using the Internal Builder or the Makefile builder?  I think we use the indexer as a dependency generator, even with makefile builds...

To report backtraces:
http://wiki.eclipse.org/How_to_report_a_deadlock
Comment 2 Curt Dennis CLA 2010-09-30 12:59:10 EDT
Created attachment 179980 [details]
Thread Dump immediately after building at "Invoking CDT Builder"

This is the thread dump when I hit run, while the UI was "Invoking CDT Builder"
Comment 3 Curt Dennis CLA 2010-09-30 12:59:43 EDT
Created attachment 179981 [details]
This is the thread dump when I hit run, while the UI was "Invoking CDT Builder" 15 seconds later.

This is the thread dump when I hit run, while the UI was "Invoking CDT Builder" 15 seconds later.
Comment 4 Curt Dennis CLA 2010-09-30 13:00:50 EDT
I am using the external builder "make"
Comment 5 Curt Dennis CLA 2011-01-31 09:38:35 EST
In the version of Eclipse (3.7M4), and CDT (I201012131338 M4) this issue seems to be resolved.  The amount of delay is roughly 1 second now, which is a non-issue.
Comment 6 James Blackburn CLA 2011-01-31 09:44:00 EST
This is almost certainly a duplicate of bug 318410. The performance of #findFilesForLocation has been improved.

*** This bug has been marked as a duplicate of bug 318410 ***