This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: oopack performance
- From: "Bonzini" <bonzini at gnu dot org>
- To: <dann at ics dot uci dot edu>,<gcc at gcc dot gnu dot org>,<jbuck at synopsys dot com>
- Date: Tue, 6 May 2003 19:44:32 +0200
- Subject: Re: oopack performance
> > Complex (const Complex &F) : re(F.re), im(F.im) {}
>
> This is very odd, because that's pretty much the same as the
> default compiler-generated constructor. Anyone have any idea
> why there's so much difference?
I am completely illiterate on how the C++ front-end synthesizes copy constructors, but
I wonder, are they marked as inlinable? If not, Dan, try -finline-functions or -O3 and
you should see a good increase in performance.
|_ _ _ __
|_)(_)| ),'
------- '---