Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!lll-winken!uunet!softrue!kearns From: kearns@softrue.UUCP (Steven Kearns) Newsgroups: comp.lang.c++ Subject: Chunky new and delete available Message-ID: <19.UUL1.3#8618@softrue.UUCP> Date: 3 Apr 91 19:50:03 GMT References: <285@paradim.UUCP> Organization: Software Truth Lines: 28 If you would like a really low price (in fact, free!) "chunky allocator", send me mail. It works with Borland C++ and Zortech C++, but should work under Unix with little effort. A chunky allocator can be used to replace operator new() and operator delete(), either globally or on a per-class basis. My chunky allocator has a number of advantages over typical "built in" new() and delete() functions: * When you ask for n bytes, exactly n bytes are used up, not a byte more, for n as small as 4 bytes. In contrast, most "built in" allocators use at least 16 or 32 bytes for each allocation, plus an extra 4 to 12 bytes to store sizes and various pointers. This advantage is especially important under Windows, in which each allocation can use up scarce system resources (handles). * Very fast allocation and deallocation. There are some disadvantages, mainly increased memory fragmentation. -steve ******************************************************** * Steven Kearns ....uunet!softrue!kearns * * Software Truth softrue!kearns@uunet.uu.net * ********************************************************