This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] C++ space optimization: de-cloning con/de/structors
- From: Mike Stump <mrs at apple dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Stuart Hastings <stuart at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 7 Aug 2002 18:54:11 -0700
- Subject: Re: [PATCH] C++ space optimization: de-cloning con/de/structors
On Wednesday, August 7, 2002, at 05:41 PM, Jason Merrill wrote:
Why not? These objects, created by copy constructors, are passed to
the
thunk by invisible reference.
They are? Why do you think that? I believe in the code stuart
submitted, that in fact they are not on darwin.
Yes, we can all agree that a future direction of this code would be to
make them invisible reference, that way
we avoid the copy-ctor. The question is then, should we reject this
code because it saves 14-16% in hopes that one day in the future that
someone might donate code that saves 16.5% instead?