From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: burton@openprivacy.org (Kevin A. Burton) Newsgroups: gmane.emacs.devel Subject: Re: Does a larger gc-cons-threshold mean a faster Emacs? Date: 28 Jul 2002 16:44:06 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: <87sn23v2nt.fsf@openprivacy.org> References: <87ofcu55qt.fsf@openprivacy.org> <3405-Sun28Jul2002210711+0300-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1027900178 26269 127.0.0.1 (28 Jul 2002 23:49:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 28 Jul 2002 23:49:38 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Yxn7-0006pa-00 for ; Mon, 29 Jul 2002 01:49:37 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Yy45-0005m9-00 for ; Mon, 29 Jul 2002 02:07:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YxnJ-000617-00; Sun, 28 Jul 2002 19:49:49 -0400 Original-Received: from dsl081-061-015.sfo1.dsl.speakeasy.net ([64.81.61.15] helo=openprivacy.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17YxmK-00060f-00 for ; Sun, 28 Jul 2002 19:48:48 -0400 Original-Received: from openprivacy.org (localhost [127.0.0.1]) by openprivacy.org (8.12.2/8.12.2/Debian -5) with ESMTP id g6SNmkCt010722; Sun, 28 Jul 2002 16:48:46 -0700 Original-Received: from localhost (localhost [[UNIX: localhost]]) by openprivacy.org (8.12.2/8.12.2/Debian -5) id g6SNmjQS010716; Sun, 28 Jul 2002 16:48:45 -0700 Original-To: Eli Zaretskii In-Reply-To: <3405-Sun28Jul2002210711+0300-eliz@is.elta.co.il> Original-Lines: 47 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6114 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6114 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 "Eli Zaretskii" writes: > > From: burton@openprivacy.org > > Date: 26 Jul 2002 18:17:30 -0700 > > > > 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) > > Not exactly: it also makes each GC significantly slower (in my experience). > With the default threshold, each GC is over very quickly (on a decent > machine). The problem is that the GC happens synchronously while running emacs. I have increased the gc-cons-threshold and at the same time installed an idle timer to run GC in the background... :) Kevin - -- Kevin A. Burton ( burton@apache.org, burton@openprivacy.org, burton@peerfear.org ) Location - San Francisco, CA, Cell - 415.595.9965 Jabber - burtonator@jabber.org, Web - http://www.peerfear.org/ GPG fingerprint: 4D20 40A0 C734 307E C7B4 DCAA 0303 3AC5 BD9D 7C4D IRC - openprojects.net #infoanarchy | #p2p-hackers | #reptile Give a man a flame and keep him warm for the night. Set him on fire and keep him warm for the rest of his life. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Get my public key at: http://relativity.yi.org/pgpkey.txt iD8DBQE9RIHGAwM6xb2dfE0RAvwZAKC8Qm8mosTpENWNm/t0t3XIAKPRowCfStBL oLt+bea+dYZoXPUXOBgFz+4= =mVyF -----END PGP SIGNATURE-----