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: On empty member optimization on comparator in stl_tree...


On Wed, Oct 22, 2008 at 4:25 PM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
> Sylvain Bougerel wrote:
>> Sorry for all these questions, I'm just looking for answers in order
>> to have a better understanding of the library and in order to get
>> better at coding C++.
>>
> The code you can see now is just a "placeholder" for the actual
> empty-member optimization which at some point has been quickly
> attempted, then reverted the last minute before the ABI freeze, and now
> cannot be properly implemented because of the ABI freeze itself. The
> next occasion it will, if not earlier when the ABI will be certainly
> broken in the C++1x library.
>
> Paolo.
>

Thanks for your reply.

So, in terms of implementation, if I was to write an empty member
optimization myself, I could also optimize _Key_Compare in this
fashion. There is nothing wrong with doing that?

Sylvain


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