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: [RFC] optional fast iterators for set/map in libstdc++


Paolo Carlini wrote:
>> implemented using only 2 bits rather than 16 bytes of overhead (and then
>> you can in principle get rid of the parent pointer, and end up actually
>> saving memory).
> Thanks Paolo. Then I also suggest exploring other ways to implement
> the same basic idea.
Note that the _Rb_tree_color enum can certainly host the two bits
without changing the memory layout of _Rb_tree_node_base. I wonder if we
could even implement some of this (not optimally, maybe) without
breaking binary compatibility... Paolo, any idea?

Paolo.


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