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)
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@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] On Behalf Of Jim.Hyslop Sent: Tuesday, 13 April 2004 9:16 PM To: 'boost-users@lists.boost.org' 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@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
David Barrett-Lennard
-
Jim.Hyslop