[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: very slow compiling with 3.1 RC1

Did some research in this problem. So most of time takes when compiling
particular two classes (log says "Writing new class file xxx.class") so it
always slows for about 5 minutes when writing one class file. Also tried to
do some profiling, please check attached file.


Jerome Lanneluc wrote:

> You can create a .options file with the following contents:
>
> org.eclipse.jdt.core/debug=true
> org.eclipse.jdt.core/debug/builder=true
>
> And start eclipse with:
> eclipse.exe -debug <path to your .options file> -vm <path to your
> jre>\bin\java.exe
>
> Information will be printed to the DOS console.
>
>
> Donatas wrote:
>> Such problems apperas on full rebuild, it seems that slowness are only in
>> some packages. If there is info how can I turn on diagnostics messages
>> for
>> compiling  I can try to check what classes exactly causes such problems.
>>
>>
>> Jerome Lanneluc wrote:
>>
>>
>>> Our performance stats show that we are still positive in most areas:
>>>
>>
>>
http://download.eclipse.org/downloads/drops/S-3.1RC1-200505271300/performance/org.eclipse.jdt.core.php?
>>
>>
>>> Do you have details on what condition you see this slowdown ?
>>>
>>> Donatas wrote:
>>>
>>>> Have anyone else noticed this problem ? 3.0 does full build about 5
>>>> time faster than 3.1. My project contains more than 5000 classes.
>>>> Source code
>>>> compatibility is set to 1.4. I tried to change warnings  settings but
>>>> this does not help. Any tips ?
>>
>>
Title: Invocation tree

Invocation tree

Session: eclipse
Time of export: Friday, June 3, 2005 8:46:25 AM EEST
JVM time: 28:18
  
Thread selection:  All thread groups
Thread status:   Runnable


 50.5% - 985,441 ms org.eclipse.core.internal.jobs.Worker.run
 49.6% - 969,262 ms org.eclipse.core.internal.events.AutoBuildJob.run
 49.6% - 969,262 ms org.eclipse.core.internal.events.AutoBuildJob.doBuild
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager.build
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager.basicBuildLoop
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager.basicBuild
 49.6% - 969,262 ms org.eclipse.core.runtime.Platform.run
 49.6% - 969,262 ms org.eclipse.core.internal.runtime.InternalPlatform.run
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager$1.run
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager.basicBuild
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager.basicBuild
 49.6% - 969,262 ms org.eclipse.core.runtime.Platform.run
 49.6% - 969,262 ms org.eclipse.core.internal.runtime.InternalPlatform.run
 49.6% - 969,262 ms org.eclipse.core.internal.events.BuildManager$2.run
 49.6% - 969,262 ms org.eclipse.jdt.internal.core.builder.JavaBuilder.build
 49.6% - 969,262 ms org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll
 49.6% - 969,262 ms org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build
 49.6% - 969,262 ms org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile
 49.6% - 969,262 ms org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.Compiler.compile
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.Compiler.process
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast._expression_.resolveTypeExpecting
 49.6% - 969,262 ms org.eclipse.jdt.internal.compiler.ast.InstanceOfExpression.resolveType
 24.3% - 474,739 ms org.eclipse.jdt.internal.compiler.ast._expression_.checkCastTypesCompatibility
 2.1% - 41,140 ms org.eclipse.jdt.core.compiler.CharOperation.equals
 0.5% - 9,798 ms org.eclipse.core.internal.events.NotificationManager$NotifyJob.run
 0.3% - 6,379 ms org.eclipse.team.internal.core.BackgroundEventHandler$1.run
 49.5% - 967,361 ms org.eclipse.core.launcher.Main.main
 49.5% - 967,361 ms org.eclipse.core.launcher.Main.run
 49.5% - 967,361 ms org.eclipse.core.launcher.Main.basicRun
 49.5% - 967,361 ms org.eclipse.core.launcher.Main.invokeFramework
 49.5% - 967,361 ms java.lang.reflect.Method.invoke
 49.5% - 967,361 ms sun.reflect.DelegatingMethodAccessorImpl.invoke
 49.5% - 967,361 ms sun.reflect.NativeMethodAccessorImpl.invoke
 49.5% - 967,361 ms sun.reflect.NativeMethodAccessorImpl.invoke0
 49.5% - 967,361 ms org.eclipse.core.runtime.adaptor.EclipseStarter.run
 49.5% - 967,361 ms org.eclipse.core.runtime.adaptor.EclipseStarter.run
 49.5% - 967,361 ms org.eclipse.core.internal.runtime.PlatformActivator$1.run
 49.5% - 967,361 ms org.eclipse.ui.internal.ide.IDEApplication.run
 49.5% - 967,361 ms org.eclipse.ui.PlatformUI.createAndRunWorkbench
 49.5% - 967,361 ms org.eclipse.ui.internal.Workbench.createAndRunWorkbench
 49.5% - 967,361 ms org.eclipse.ui.internal.Workbench.runUI
 48.2% - 941,552 ms org.eclipse.ui.internal.Workbench.runEventLoop
 48.0% - 936,997 ms org.eclipse.ui.application.WorkbenchAdvisor.eventLoopIdle
 47.9% - 936,331 ms org.eclipse.swt.widgets.Display.sleep
 0.2% - 4,511 ms org.eclipse.swt.widgets.Display.readAndDispatch