Re: setting an optimal value of gc-cons-threshold
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Re: setting an optimal value of gc-cons-threshold         


Author: Xavier Maillard
Date: Aug 27, 2007 22:35

Hi Leo,

[catching up my mail stack, sorry for the delay]

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 :)

If you manage to get a valid answer here, I am really interested
in reading it.

Regards,

Xavier
2 Comments
Re: setting an optimal value of gc-cons-threshold         


Author: Stefan Monnier
Date: Sep 6, 2007 21:58

> 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.

Stefan
no comments
Re: setting an optimal value of gc-cons-threshold         


Author: Xavier Maillard
Date: Sep 9, 2007 18:00

> 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
no comments

RELATED THREADS
SubjectArticles qty Group
Con colpevole ritardo: report incontro post-partita con "the bun".31 it.sport.calcio.napoli ·