This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
Re: Very slow compiler?
- To: java-discuss at sources dot redhat dot com
- Subject: Re: Very slow compiler?
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Mon, 25 Sep 2000 06:56:59 -0700 (PDT)
- References: <or66o4a8ag.fsf@guarana.lsd.ic.unicamp.br><87wvghh3b8.fsf@creche.cygnus.com><orog1r75pf.fsf@guarana.lsd.ic.unicamp.br><39CF1448.633E0702@albatross.co.nz>
- Reply-To: apbianco at redhat dot com
Bryce McKinlay writes:
> My libgcj build has suddenly become extremely slow. Each class file
> is currently taking around 5-10 seconds to compile on my 450mhz
> machine, far longer than it should.
We saw that too.
> Further investigation running jc1 without "-quiet" shows that it is
> looking at hundreds of class files that it shouldn't:
> ...
> When run in a different directory, it doesn't have this
> problem. Only the correct list of dependencies are loaded.
We saw the number of dependencies rising up, but I thought that was a
side effect of bringing libgcj to completion, tightening the
dependencies in between classes -- I'm not a library hacker. Our
original suspect was Tom's iconv patch, as it seems that undefining
HAVE_ICONV would dramatically speed things up.
Your hint is precious. I've been sporadically chasing this problem for
a few days now, and I noticed that it was sometimes hard to reproduce
the slowdown accurately. I'm going to look into the issue with the
results of your observations in mind.
Thanks!
./A