This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: _Rb_tree + allocator observations
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Chris Lattner <sabre at nondot dot org>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 12 Nov 2003 19:03:46 -0600
- Subject: Re: _Rb_tree + allocator observations
- Organization: Red Hat / Chicago
- References: <Pine.LNX.4.44.0311072036110.5264-100000@nondot.org>
>Why not
>derive from the allocator object itself somehow to take advantage of the
>empty base class optimization?
You might want to look through this thread from earlier in the year:
http://gcc.gnu.org/ml/libstdc++/2002-11/msg00176.html
http://gcc.gnu.org/ml/libstdc++/2002-11/msg00165.html
No doubt, the allocator bits could be done differently, and more
efficiently. If you want to work on this, it would be appreciated.
There's been some work on alternate allocators on mainline.
-benjamin