Mercurial > emacs
comparison lispref/internals.texi @ 64602:cf0f927b0ecc
(Garbage Collection): Clarify previous change.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 22 Jul 2005 22:58:15 +0000 |
parents | 8e0b1420853a |
children | e836425ee789 890cc78a5a24 |
comparison
equal
deleted
inserted
replaced
64601:a0a53728d812 | 64602:cf0f927b0ecc |
---|---|
367 until the subsequent garbage collection, at which time | 367 until the subsequent garbage collection, at which time |
368 @code{garbage-collect} will set the threshold back to 10,000. | 368 @code{garbage-collect} will set the threshold back to 10,000. |
369 @end defopt | 369 @end defopt |
370 | 370 |
371 @defopt gc-cons-percentage | 371 @defopt gc-cons-percentage |
372 The value of this variable is the minimum portion of the heap that | 372 The value of this variable specifies the amount of consing before a |
373 should be allocated before a garbage collection takes place. It is | 373 garbage collection occurs, as a fraction of the current heap size. |
374 used only if the specified size is larger than | 374 This criterion and @code{gc-cons-threshold} apply in parallel, and |
375 @code{gc-cons-threshold}. | 375 garbage collection occurs only when both criteria are satisfied. |
376 | 376 |
377 As the heap size increases, the time to perform a garbage collection | 377 As the heap size increases, the time to perform a garbage collection |
378 increases, so in order to compensate, this variable tries to | 378 increases. Thus, it can be desirable to do them less frequently in |
379 correspondingly reduce the frequency of collection by letting Emacs | 379 proportion. |
380 allocate more memory between each collection. | |
381 @end defopt | 380 @end defopt |
382 | 381 |
383 The value returned by @code{garbage-collect} describes the amount of | 382 The value returned by @code{garbage-collect} describes the amount of |
384 memory used by Lisp data, broken down by data type. By contrast, the | 383 memory used by Lisp data, broken down by data type. By contrast, the |
385 function @code{memory-limit} provides information on the total amount of | 384 function @code{memory-limit} provides information on the total amount of |