javac slow on Intel Core Duo
I have a project with about 550 java files. When I upgraded to this laptop (a 2.0GHz Core Duo) from a 1.8GHz Centrino, my build times went from 10-15s on the Centrino to about 35-50s on the Core Duo. I'm running in Linux, and I've tested using JDK versions 1.5.0_08, 1.5.0_09 and 1.6.0_b86 and they're all in the same ballpark. I've checked disk performance with 'hdparm' and it's fine for a 5400RPM disk. Watching java with 'top' shows that it's at > 180% CPU utilization, so it has no apparant issue using both cores. I've even tried setting ant's processor affinity to use 1 core, and it's still slow. 'jps' is returning only 1 process prior to runing ant, and that's jps itself.
I've stripped the ant build.xml down to bare essentials, basically it's only performing a java compile, and it seems to run in around 33s. When I run 'taskset 01 ant' to force it to use only one core, it runs in about 38s. 'top' shows java is at 100% CPU utilization during that process.
I also have plenty of memory free, during all of the builds I still had > 300MB free.
Has anyone run into this issue and found a resolution? It's driving me nuts, everything else is working fine, Eclipse runs like a top, the actual application runs fast (even faster in 1.6), but the slow compilation speed is really affecting my workflow. I've searched for the past two days on google and have only come up with people using java on their Intel Macs.
Thank you.

