This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]