This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Quality of GCC 3.1
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Andrew Haley <aph at cambridge dot redhat dot com>
- Cc: gcc at gnu dot org, java at gcc dot gnu dot org
- Date: Wed, 19 Jun 2002 15:03:48 +1200
- Subject: Re: Quality of GCC 3.1
- References: <20020617210500.GA28032@localhost.tpnet.pl> <20020618145503.GL19604@atrey.karlin.mff.cuni.cz> <15631.20443.27566.990466@cuddles.cambridge.redhat.com>
Andrew Haley wrote:
Jan Hubicka writes:
> > a) What is the reason of such big decrease in performance especially if
> > exceptions and/or streams are used?
>
> The exceptions got slower, because the tables are more compact. Is
> exception delivery performance really problem for C++ programs?
If exceptions are very much slower it's bad news for Java. On the
other hand, our binaries are a good deal bigger than we'd like them to
be...
For most Java applications, I don't think it matters a great deal about
the speed of throwing/delivering exceptions. Its generally regarded as
bad practice to rely on throws as part of the normal execution of a
program, so given the choice between slower exception delivery and
significantly smaller binaries, I'd go for the small binaries.
regards
Bryce.