Bug 88169 - Java Indexer takes a lot of time on initial build
Summary: Java Indexer takes a lot of time on initial build
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M7   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2005-03-16 09:18 EST by Tod Creasey CLA
Modified: 2005-04-06 09:44 EDT (History)
0 users

See Also:


Attachments
Trace of Java Indexer (22.38 KB, text/html)
2005-03-16 09:19 EST, Tod Creasey CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2005-03-16 09:18:52 EST
20040315

This may be the nature of the beast but I thought I would log a trace anyways.
When I compiled all of SWT the Java Indexer took 55s to complete (the build took
about 120s in comparison).

STEPS
1) Turn off autobuild
2) Load swt and swt win32
3) rename classpath_win32 to classpath
4) Turn auto build on

I will attach a trace
Comment 1 Tod Creasey CLA 2005-03-16 09:19:35 EST
Created attachment 18836 [details]
Trace of Java Indexer
Comment 2 Jerome Lanneluc CLA 2005-03-16 09:28:05 EST
Tod, the Java indexer has nothing to do with the Java builder. I suspect that
the slow down you're seeing is due to the Java builder running at the same time.
Can you please confirm this ?
Comment 3 Tod Creasey CLA 2005-03-16 09:33:47 EST
Yes - if you look at the steps then you will see that the builder is running as
I had just turned the auto build on.
Comment 4 Jerome Lanneluc CLA 2005-03-16 09:41:24 EST
I looked at the steps :-) But I'm missing the point of this bug report. Can you
please rephrase the problem ?
Comment 5 Tod Creasey CLA 2005-03-16 09:53:49 EST
I wanted to point out that the JavaIndexing took about half as long as building
which seemed pretty long. If this is not an issue that close this report - I
don't understand your domain well enough to say whether or not this should be
flagged.
Comment 6 Philipe Mulet CLA 2005-04-06 05:17:56 EDT
I think this is a natural consequence of multi-threading on single processor
machine.
Closing
Comment 7 Tod Creasey CLA 2005-04-06 07:41:28 EDT
Agreed - my suggestion was just that you try and defer the indexing to reduce
the Thread count.

Having said that as this is a non UI Thread that may not win us much if the
context switching doesn't happen that often.

My machine is dual processor BTW.
Comment 8 Philipe Mulet CLA 2005-04-06 09:44:07 EDT
We reuse the same thread for all indexing activity, so no big deal.