Ant CPU consumption

Hi.

A friend urged me to download and try the latest Eclipse (3).

One thing he told me to try was to compile with ant under it.

He initially thought it would be faster than IJ so I tried.

The speed was exactly the same, but the CPU consumption was not.

In IJ, CPU was at 100% or near it the whole time, where under Eclipse it
wasn't, and in many cases at the 10-20% range. The most conspiquous is
targets that copy files. In Eclipse these don't take almost any CPU.

If I switch IJ Ant panel to text view, the CPU goes down to be similar to
Eclipse.

I am running IJ 908, Eclipse 3 under XP and JDK 1.4.2

Of course, lower CPU means that other things will be able to work in the
same time and if I do something else while compiling compiling will
eventually be faster.

Does anyone have an explanation for this? May be there is some looping going
on in IJ that shouldn't?

Amnon


1 comment
Comment actions Permalink

Amnon I. Govrin wrote:

In IJ, CPU was at 100% or near it the whole time, where under Eclipse it
wasn't, and in many cases at the 10-20% range. The most conspiquous is
targets that copy files. In Eclipse these don't take almost any CPU.

If I switch IJ Ant panel to text view, the CPU goes down to be similar to
Eclipse.


I've noticed this too. There was an old SCR that suggested that a regexp
matcher used by the result tree builder was causing the problem. It was
recently closed as obsolete but I see no improvement in performance.

I'm tempted to try poking at it with JProbe.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

Please sign in to leave a comment.