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 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


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