Variable: gc-cons-threshold
gc-cons-threshold is a customizable variable defined in alloc.c.
Value
800000
Documentation
Number of bytes of consing between garbage collections.
Garbage collection can happen automatically once this many bytes have been allocated since the last garbage collection. All data types count.
Garbage collection happens automatically only when eval is called.
By binding this temporarily to a large number, you can effectively
prevent garbage collection during a part of the program. But be
sure to get back to the normal value soon enough, to avoid system-wide
memory pressure, and never use a too-high value for prolonged periods
of time.
See also gc-cons-percentage.
Source Code
// Defined in /usr/src/emacs/src/alloc.c
DEFVAR_INT ("gc-cons-threshold", gc_cons_threshold,
doc: /* Number of bytes of consing between garbage collections.
Garbage collection can happen automatically once this many bytes have been
allocated since the last garbage collection. All data types count.
Garbage collection happens automatically only when `eval' is called.
By binding this temporarily to a large number, you can effectively
prevent garbage collection during a part of the program. But be
sure to get back to the normal value soon enough, to avoid system-wide
memory pressure, and never use a too-high value for prolonged periods
of time.
See also `gc-cons-percentage'. */);