Garbage Collection Is Expensive

Garbage collection is safer and more convenient for the programmer than explicit releasing of storage.

However, whatever the implementation, garbage collection is usually computationally expensive. As a rough rule of thumb, one can think of a cons as taking 100 times as much CPU time as a basic instruction.

The moral: avoid unnecessary conses.

Contents    Page-10    Prev    Next    Page+10    Index