This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFC: Hint parameter for allocators.
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: dhruvbird at gmx dot net
- Date: Thu, 22 Jan 2004 21:19:54 -0600 (CST)
- Subject: Re: RFC: Hint parameter for allocators.
- Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs
Dhruv Matani writes:
> I'd like to discuss the specific use of the hint parameter of a standard
> allocator when used to specify the region of memory the allocator should
> prefer when choosing it for the current request.
[...]
This is an interesting line of ideas. I do wonder if the dynamic
complexity outweighs memory layout advantage. In a static system
build, where precompute time is a one-time cost, this can be a big win.
> 4. Does anyone know of an allocator that makes use of the hint parameter
> for locality preservation?
Not in the context of a general allocator for use with STL. How are
you passing a hint in your current effort (code example, etc)?
Regards,
Loren