diff options
| author | Eli Zaretskii | 2023-03-11 18:16:35 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-03-11 18:16:35 +0200 |
| commit | 0fedbfa6a9d8a73c4adfa8f144acd2808676ea3a (patch) | |
| tree | f04cbc5e466e48a40625efd6c3fced2ca7e03f14 | |
| parent | b0b24ad2fc579537e512f0c6654f35d4ca22a1b6 (diff) | |
| download | emacs-0fedbfa6a9d8a73c4adfa8f144acd2808676ea3a.tar.gz emacs-0fedbfa6a9d8a73c4adfa8f144acd2808676ea3a.zip | |
; Minor improvement of documentation of GC thresholds
* doc/lispref/internals.texi (Garbage Collection): More practical
aspects of enlarging the GC threshold.
| -rw-r--r-- | doc/lispref/internals.texi | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi index 6a8aaf8ebaf..428d016b274 100644 --- a/doc/lispref/internals.texi +++ b/doc/lispref/internals.texi | |||
| @@ -558,13 +558,15 @@ The initial threshold value is @code{GC_DEFAULT_THRESHOLD}, defined in | |||
| 558 | value is 400,000 for the default 32-bit configuration and 800,000 for | 558 | value is 400,000 for the default 32-bit configuration and 800,000 for |
| 559 | the 64-bit one. If you specify a larger value, garbage collection | 559 | the 64-bit one. If you specify a larger value, garbage collection |
| 560 | will happen less often. This reduces the amount of time spent garbage | 560 | will happen less often. This reduces the amount of time spent garbage |
| 561 | collecting, but increases total memory use. You may want to do this | 561 | collecting (so Lisp programs will run faster between cycles of garbage |
| 562 | when running a program that creates lots of Lisp data. However, we | 562 | collection that happen more rarely), but increases total memory use. |
| 563 | You may want to do this when running a program that creates lots of | ||
| 564 | Lisp data, especially if you need it to run faster. However, we | ||
| 563 | recommend against increasing the threshold for prolonged periods of | 565 | recommend against increasing the threshold for prolonged periods of |
| 564 | time, and advise that you never set it higher than needed for the | 566 | time, and advise that you never set it higher than needed for the |
| 565 | program to run in reasonable time. Using thresholds higher than | 567 | program to run in reasonable time. Using thresholds higher than |
| 566 | necessary could potentially cause system-wide memory pressure, and | 568 | necessary could potentially cause higher system-wide memory pressure, |
| 567 | should therefore be avoided. | 569 | and should therefore be avoided. |
| 568 | 570 | ||
| 569 | You can make collections more frequent by specifying a smaller value, down | 571 | You can make collections more frequent by specifying a smaller value, down |
| 570 | to 1/10th of @code{GC_DEFAULT_THRESHOLD}. A value less than this minimum | 572 | to 1/10th of @code{GC_DEFAULT_THRESHOLD}. A value less than this minimum |