This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: Increase size of std::function small object buffer


On Jul 31, 2016 12:39 AM, "Oleg Endo" wrote:
>
> On Sat, 2016-07-30 at 22:07 +0100, Jonathan Wakely wrote:
>
> >
> > > I see a simple solution to this:
> > >
> > > Increase the internal buffer of std::function to 24 bytes from 16
> > > bytes
> > > as the method pointer uses 16 bytes while the pointer to class
> > > instance
> > > uses another 8 bytes.
> >
> > That would break the library ABI, so is not an option.
> >
>
> He was saying that he's on an embedded system.  Very often ABI
> stability is not of a concern in such cases.  Of course on
> desktop/server systems ABI stability is a concern.  But imposing it on
> every system?

Then the sources could be changed locally. It would be a one line change.

> Maybe we could have some configure options to control these kind of
> parameters when building the toolchain?

See https://gcc.gnu.org/ml/libstdc++/2016-05/msg00073.html

Of course it would be welcome if the people who want such things were
to help. I don't need it and my employers don't need it (but I know
people who have expressed interest in using it).


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