[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Does a larger gc-cons-threshold mean a faster Emacs?
From: |
Kevin A. Burton |
Subject: |
Does a larger gc-cons-threshold mean a faster Emacs? |
Date: |
26 Jul 2002 18:17:30 -0700 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
OK...
I sent an email about my GC problems a while back but only RMS replied. I am
still going to spend some time to debug what is going on but:
gc-cons-threshold's value is 4194304
Documentation:
*Number of bytes of consing between garbage collections.
Garbage collection can happen automatically once this many bytes have been
allocated since the last garbage collection. All data types count.
Garbage collection happens automatically only when `eval' is called.
By binding this temporarily to a large number, you can effectively
prevent garbage collection during a part of the program.
This would lead me to believe that setting this to a large value would:
1. Take up a lot of memory
2. Increase the perceived Emacs speed
Right now I have it set to :
(setq gc-cons-threshold (* 8192 8192))
Which seems to yield decent speed (though Emacs uses 50M)
If I set it to anything higher... I get CONSTANT gc and lock my CPU at 100%
(emacs is dead)
This does not seem like the right behavior. Why would it constantly GC?
Also... would it be acceptable to run an idle timer to run GC for me (in the
background)?
Kevin
- --
Kevin A. Burton ( address@hidden, address@hidden, address@hidden )
Location - San Francisco, CA, Cell - 415.595.9965
Jabber - address@hidden, Web - http://www.peerfear.org/
GPG fingerprint: 4D20 40A0 C734 307E C7B4 DCAA 0303 3AC5 BD9D 7C4D
IRC - openprojects.net #infoanarchy | #p2p-hackers | #reptile
At the outset, we must comment on the ironic incongruity of permitting the
Recording Industry Association of America to testify at a hearing focused on
the 'Theft of American Intellectual Property'.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt
iD8DBQE9QfSqAwM6xb2dfE0RAppMAKCiK3fBbL5IP+pMQLCS0w0Zzf6diACgySYa
asBa9YMbVi7cOELBsPFs20A=
=0a6V
-----END PGP SIGNATURE-----
- Does a larger gc-cons-threshold mean a faster Emacs?,
Kevin A. Burton <=