[comp.lang.c++] Chunky new and delete available

kearns@softrue.UUCP (Steven Kearns) (04/04/91)

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