Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326687 - Invoking CDT Builder taking 10-17 seconds for incremental builds
Summary: Invoking CDT Builder taking 10-17 seconds for incremental builds
Status: RESOLVED DUPLICATE of bug 318410
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Chris Recoskie CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 11:28 EDT by Curt Dennis CLA
Modified: 2011-01-31 09:44 EST (History)
1 user (show)

See Also:


Attachments
Thread Dump immediately after building at "Invoking CDT Builder" (22.53 KB, text/plain)
2010-09-30 12:59 EDT, Curt Dennis CLA
no flags Details
This is the thread dump when I hit run, while the UI was "Invoking CDT Builder" 15 seconds later. (21.22 KB, text/plain)
2010-09-30 12:59 EDT, Curt Dennis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***