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: Hint parameter for allocators.


Dhruv Matani <dhruvbird@gmx.net> writes:

| [I Missed a CC:-)]
| 
| On Mon, 2004-01-26 at 09:34, Gabriel Dos Reis wrote:
| > Matt Austern <austern@apple.com> writes:
| > 
| > | On Jan 22, 2004, at 2:50 AM, Dhruv Matani wrote:
| > | 
| > | > 4. Does anyone know of an allocator that makes use of the hint
| > | > parameter
| > | > for locality preservation?
| > | 
| > | I don't know of any.  There's a chicken-and-egg problem, of course: most
| > | of the standard containers don't bother to use the hint parameter
| > | because
| > | most allocators don't take advantage of it, and most allocators don't
| > | bother
| > | to provide this functionality for exactly the same reason.
| > 
| > I had meant to submit a patch that makes uses of the hint parameter,
| > especially for vector<>::resize -- especially to make it avoid
| > excessive copies when the "native" allocator is used.
| > I lost that patch when my laptop was stolen three weeks ago.
| > (Also, it had a potiential for an ABI change). 
| 
| Is that why we didn't see you lurking around here for quite some time
| ;-)

In part yes :-)
(the other part is that designing new tools for C++ or extending C++
is a fulltime job :-)

| Jokes apart, is this patch in parallel with the discussion we had on
| comp.lang.c++.moderated?

Yes.

-- Gaby


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