From: Kevin Gallagher
Subject: Re: Garbage collection cost
Date: 
Message-ID: <4697ee$ouh@kernighan.cs.umass.edu>
Christopher Price <········@branz.org.nz> writes:
>On 15 Oct 1995 15:11:49 -0800, ···@best.com () wrote:
>
>>| I can believe that GC systems can be as fast as malloc/free systems but if
>>| malloc/free systems are implemented correctly and as efficiently as possible,
>>| there is no way a GC system can be faster than them.
>>
>>That belief is common but false.  You can make specially constructed
>>test cases using GC nearly arbitrarily faster than anything equivalent
>>that could be called a "malloc/free system".  In practice, the
>>differences are usually not that dramatic.
>
>Wait a minute  doing your own  memory management is zero cost.

Tell me more!

Presumably, `doing your own memory management' requires that
you write functions like:

  char* allocate (...)
    { ... }


  char* free (...)
    { ... }

I am very curious as to what you put inside the braces that
`is zero cost'.