"Lars Christensen" <larsch / cs.auc.dk> wrote in message news:Pine.GSO.4.33.0108211159120.14459-100000 / borg.cs.auc.dk... > I have written replacement malloc/realloc/free functions that allocates > blocks of memory (1.5Kb) and uses it as a memory segment pool for equally > sized segments. I have also successfully used an allocator called smartnew which was published in DDJ Jan.1999. It can make dramatic speedups in overall runtime for object allocation models. But smartnew isn't threadsafe as is. It should also be noted that compacting garbage collectors allocate small objects very efficiently, in will not necessarily blend well with a block allocator. I believe OCaml has an interesting generational, incremental garbage collector www.ocaml.org , but I haven't look at it in detail. Source for smartnew is probably available online at www.ddj.com jan.99 archives. Otherwise I have it (7.5K) Mikkel