unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: burton@openprivacy.org (Kevin A. Burton)
Cc: emacs-devel@gnu.org
Subject: Re: Does a larger gc-cons-threshold mean a faster Emacs?
Date: 28 Jul 2002 16:44:06 -0700	[thread overview]
Message-ID: <87sn23v2nt.fsf@openprivacy.org> (raw)
In-Reply-To: <3405-Sun28Jul2002210711+0300-eliz@is.elta.co.il>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

"Eli Zaretskii" <eliz@is.elta.co.il> 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).
<snip/>

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

  reply	other threads:[~2002-07-28 23:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-27  1:17 Does a larger gc-cons-threshold mean a faster Emacs? Kevin A. Burton
2002-07-28  2:42 ` Richard Stallman
2002-07-28  2:54   ` Kevin A. Burton
2002-07-28 18:07 ` Eli Zaretskii
2002-07-28 23:44   ` Kevin A. Burton [this message]
2002-07-29  4:55     ` Eli Zaretskii
2002-07-29 17:30     ` Richard Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sn23v2nt.fsf@openprivacy.org \
    --to=burton@openprivacy.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).