oopack performance

Bonzini bonzini@gnu.org
Tue May 6 17:46:00 GMT 2003


> > 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.

|_  _  _ __
|_)(_)| ),'
------- '---



More information about the Gcc mailing list