A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-534.htm below:

allocation-in-gen-num

allocation-in-gen-num Summary

Allocates objects from a specified generation within the scope of evaluating a number of forms in 32-bit LispWorks.

Signature

allocation-in-gen-num gen-num &body body => result

Arguments

gen-num

An integer, which if out of range for a valid generation number is rounded either to the youngest or oldest generation.

If gen-num is negative, the specified generation is: the highest generation number + 1 - gen-num, so that an argument of -1 specifies the highest generation number.

body

The forms to be evaluated while the allocation generation has been temporarily set to gen-num.

Values

result

The result of evaluating body.

Description

Allocates objects from a specified generation during the extent of the evaluation of the body forms.

Normally objects are allocated from the first (youngest) generation, which assumes that they are short-lived. The memory allocator and garbage collector perform better if allocation of large numbers of non-ephemeral objects is done explicitly into a generation other than the youngest.

Examples
(allocation-in-gen-num
     1
   (setq tab (make-hash-table :size 1200
                              :test 'eq)
         arr (make-array 20)))

LispWorks User Guide and Reference Manual - 20 Sep 2017


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4