Boost logo

Boost Users :

From: David Barrett-Lennard (dbl_at_[hidden])
Date: 2004-04-13 23:13:51


Yes HeapSetInformation() will do it once you have the heap handle.
However, the CRT creates its own heap with a call to HeapCreate(), and
stores the heap handle in a global variable called _crtheap that is not
exported by the library.

When I run my heap allocation test (see previous post) on a heap with
the LFH enabled I don't get the pathological behaviour. However, it is
still somewhat slower than the Doug Lea allocator.

- David

> -----Original Message-----
> From: boost-users-bounces_at_[hidden] [mailto:boost-users-
> bounces_at_[hidden]] On Behalf Of Jim.Hyslop
> Sent: Tuesday, 13 April 2004 9:16 PM
> To: 'boost-users_at_[hidden]'
> Subject: RE: [Boost-users] Changing the heap allocator
>
> David Barrett-Lennard wrote:
> > Does anyone know how to enable the LFH (low fragmentation
> > heap) for the
> > heap created by the VC CRT?
>
> Have you tried HeapSetInformation()?
>
> --
> Jim Hyslop
> Senior Software Designer
> Leitch Technology International Inc. (http://www.leitch.com)
> Columnist, C/C++ Users Journal (http://www.cuj.com/experts)
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net