![]() ![]() ![]() #if defined(USE_HOARD)#pragma comment(lib, "libhoard.lib") #endif To use this option, you should put the following into your source code as the very first lines: This approach is simple, but only suitable for small applications, since it will not affect malloc calls in any other DLL you might load. The other method is to link directly with the libhoard DLL. To use the Winhoard version, link your executable with usewinhoard.obj and winhoard.lib, and then use winhoard.dll:Ĭl /Ox /MD myprogram.cpp usewinhoard.obj winhoard.lib Winhoard replaces malloc/new calls from your program and any DLLs it might use (leaving HeapAlloc calls intact). The first and best method is to use winhoard. There are two ways to use Hoard on Windows. Just link it in or set just one environment variable (see Using Hoard for more information). Hoard is a drop-in replacement for malloc() that can dramatically improve application performance, especially for multithreaded programs running on multiprocessors. It runs on a variety of platforms, including Linux, Solaris, and Windows. Hoard memory allocator is a fast, scalable, and memory-efficient memory allocator. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |