NextPrevUpTopContentsIndex

with-heavy-allocation

Macro
Summary

Slows up garbage collection during the execution of code that allocates a lot of space.

Package

hcl

Signature

with-heavy-allocation &rest body => result

Arguments

body

The forms for which you want the garbage collector to behave differently from normal.

Values

result

The result of executing body .

Description

The macro with-heavy-allocation is for use with code that allocates a lot of space but is not interactive. It ensures that garbage collection (GC) is carried out less frequently while these forms are being executed. However, each GC may take longer.

Compatibility note

In LispWorks 5.0 with-heavy-allocation is implemented only in 32-bit LispWorks. In version 5.1 and later it is implemented in 64-bit LispWorks as well.

See also

avoid-gc
gc-if-needed
get-gc-parameters
mark-and-sweep
normal-gc
set-gc-parameters
finish-heavy-allocation
without-interrupts


LispWorks Reference Manual - 12 Mar 2008

NextPrevUpTopContentsIndex