[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: setting an optimal value of gc-cons-threshold
From: |
Xavier Maillard |
Subject: |
Re: setting an optimal value of gc-cons-threshold |
Date: |
Mon, 10 Sep 2007 03:00:31 +0200 |
User-agent: |
Rmail in GNU Emacs 23.0.50.3 on GNU/Linux |
> I found quite a few people in their .emacs setting gc-cons-threshold to
> a different value than the default 400000.
> I did.
> I wonder if there is a guidance for setting this value.
> So do I. I remember increasing it after several Gnus crashes but
> I did it without reflexion on what value to put here :)
There used to be some benefit to setting it higher for large Emacs sessions
(where GC can take a long time) since it would reduce the frequency of those
GCs. In Emacs-22, this is not needed any more because of the new
`gc-cons-percentage' variable which automatically causes the limit to grow
as the Emacs process grows, thus preserving a more or less constant
GC overhead.
Thank you Stefan for your clarifications.
Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org