This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Increase size of std::function small object buffer
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: Jonathan Wakely <jwakely dot gcc at gmail dot com>, Felix Winterhalter <felix at audiofair dot de>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>
- Date: Sun, 31 Jul 2016 08:39:33 +0900
- Subject: Re: Increase size of std::function small object buffer
- Authentication-results: sourceware.org; auth=none
- References: <91cb14bf-1d7a-aefd-e6bc-e49a2275ddb8@audiofair.de> <CAH6eHdQsoZ4rE--K6NFVXaJSDPqp4jyqR=N9mv1_Efpccozt4A@mail.gmail.com>
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?
Maybe we could have some configure options to control these kind of
parameters when building the toolchain?
Cheers,
Oleg