Mercurial > emacs
comparison lispref/internals.texi @ 64580:8e0b1420853a
(Garbage Collection): Add gc-cons-percentage.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 21 Jul 2005 19:03:13 +0000 |
parents | 718a981b5dd3 |
children | cf0f927b0ecc 187d6a1f84f7 |
comparison
equal
deleted
inserted
replaced
64579:51c5f403fb81 | 64580:8e0b1420853a |
---|---|
1 @c -*-texinfo-*- | 1 @c -*-texinfo-*- |
2 @c This is part of the GNU Emacs Lisp Reference Manual. | 2 @c This is part of the GNU Emacs Lisp Reference Manual. |
3 @c Copyright (C) 1990, 1991, 1992, 1993, 1998, 1999 | 3 @c Copyright (C) 1990, 1991, 1992, 1993, 1998, 1999, 2005 |
4 @c Free Software Foundation, Inc. | 4 @c Free Software Foundation, Inc. |
5 @c See the file elisp.texi for copying conditions. | 5 @c See the file elisp.texi for copying conditions. |
6 @setfilename ../info/internals | 6 @setfilename ../info/internals |
7 @node GNU Emacs Internals, Standard Errors, Tips, Top | 7 @node GNU Emacs Internals, Standard Errors, Tips, Top |
8 @comment node-name, next, previous, up | 8 @comment node-name, next, previous, up |
364 | 364 |
365 You can make collections more frequent by specifying a smaller value, | 365 You can make collections more frequent by specifying a smaller value, |
366 down to 10,000. A value less than 10,000 will remain in effect only | 366 down to 10,000. A value less than 10,000 will remain in effect only |
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 | |
370 | |
371 @defopt gc-cons-percentage | |
372 The value of this variable is the minimum portion of the heap that | |
373 should be allocated before a garbage collection takes place. It is | |
374 used only if the specified size is larger than | |
375 @code{gc-cons-threshold}. | |
376 | |
377 As the heap size increases, the time to perform a garbage collection | |
378 increases, so in order to compensate, this variable tries to | |
379 correspondingly reduce the frequency of collection by letting Emacs | |
380 allocate more memory between each collection. | |
369 @end defopt | 381 @end defopt |
370 | 382 |
371 The value returned by @code{garbage-collect} describes the amount of | 383 The value returned by @code{garbage-collect} describes the amount of |
372 memory used by Lisp data, broken down by data type. By contrast, the | 384 memory used by Lisp data, broken down by data type. By contrast, the |
373 function @code{memory-limit} provides information on the total amount of | 385 function @code{memory-limit} provides information on the total amount of |