From: Bozhidar Batsov <bozhidar@batsov.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Michael Welsh Duggan <mwd@md5i.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Default history-length should be higher
Date: Sun, 26 Jan 2014 22:19:39 +0200 [thread overview]
Message-ID: <CAM9Zgm2X2qz+b2FoauE+DkpvYTFR2B7kvRMM8PBxXFrHSxXMrw@mail.gmail.com> (raw)
In-Reply-To: <83r47ua5p8.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1271 bytes --]
On 26 January 2014 21:44, Eli Zaretskii <eliz@gnu.org> wrote:
> > Date: Sun, 26 Jan 2014 21:22:37 +0200
> > From: Bozhidar Batsov <bozhidar@batsov.com>
> > Cc: emacs-devel <emacs-devel@gnu.org>
> >
> > While we're at it - why not increase the default `gc-cons-threshold' as
> > well. Currently the default is 0.8 MB, which seems super-conservative
> given
> > today most computers have 1GB+ of memory. Code that creates a lot of
> > objects would obviously be impacted significantly, since GC would be
> > performed frequently. Setting it to something in between 10MB and 50MB
> > seems much more reasonable to me.
>
> Did you try that? If not, please do. In my experience, your
> suggestion has a downside: the GC indeed happens less frequently, but
> when it does, it takes an annoyingly long time. I find it easier to
> tolerate many GCs that run to completion in less than a second, than
> to have a few GCs that take several seconds each.
>
I've tested the flx package https://github.com/lewang/flx suggestion to
bump the gc-threshold and
the package definitely started working noticeably faster. I haven't
noticed particularly long GC pauses.
Hopefully when multi-thread support is implemented in a future version of
Emacs we'll get some parallel GC as well.
[-- Attachment #2: Type: text/html, Size: 1926 bytes --]
next prev parent reply other threads:[~2014-01-26 20:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-24 19:10 Default history-length should be higher Tom
2014-01-24 20:54 ` Stefan Monnier
2014-01-25 1:35 ` Drew Adams
2014-01-25 6:39 ` Tom
2014-01-25 7:42 ` Drew Adams
2014-01-25 7:56 ` Tom
2014-01-25 8:05 ` Tom
2014-01-25 8:45 ` Drew Adams
2014-01-26 5:00 ` Michael Welsh Duggan
2014-01-26 19:22 ` Bozhidar Batsov
2014-01-26 19:44 ` Eli Zaretskii
2014-01-26 20:19 ` Bozhidar Batsov [this message]
2014-01-26 20:34 ` Óscar Fuentes
2014-01-26 21:16 ` Drew Adams
2014-01-26 23:44 ` Trent W. Buck
2014-01-26 23:52 ` Stefan Monnier
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAM9Zgm2X2qz+b2FoauE+DkpvYTFR2B7kvRMM8PBxXFrHSxXMrw@mail.gmail.com \
--to=bozhidar@batsov.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mwd@md5i.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.