LispWorks Delivery User Guide > 4 Delivering your Application > 4.6 How Delivery makes an image smaller


4.6.1 Garbage collecting the image

The image is garbage collected during delivery. The garbage collector locates any unreferenced objects and frees the space they occupy. Then Delivery compacts the remaining memory so that the saved image is smaller.

Garbage collection is a generally good method of trimming the image size at delivery time. However, it is generally too conservative, and so it has no effect on a significant portion of the Common Lisp system and your application: Interned symbols, class definitions, and methods discriminating on classes. Such objects must be dealt with by the treeshaker.

LispWorks Delivery User Guide - 22 Dec 2009