From: Andrea Corallo via "Emacs development discussions." <emacs-devel@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: sbaugh@catern.com, emacs-devel@gnu.org
Subject: Re: Eager garbage collection
Date: Wed, 18 Nov 2020 15:30:24 +0000 [thread overview]
Message-ID: <xjfpn4ad6nj.fsf@sdf.org> (raw)
In-Reply-To: <835z62r9fb.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 18 Nov 2020 17:06:48 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> Cc: emacs-devel@gnu.org
>> Date: Wed, 18 Nov 2020 08:02:17 +0000
>> From: Andrea Corallo via "Emacs development discussions." <emacs-devel@gnu.org>
>>
>> My question is, what is the advantage of this implementation respect the
>> pure Lisp one we have?
>>
>> <https://gitlab.com/koral/gcmh/-/blob/master/gcmh.el>
>>
>> AFAIU they achieve the same. If that's the case I indeed prefer the
>> Lisp one as simpler and easier to extend.
>
> AFAICT, the basic idea is very different, so the results will probably
> also be different.
My understanding is that they both:
- Run the normal GC with a threshold X1
- Run after an idle time t GC with threshold X2, where X2 < X1
This patch compute X2 in terms of X1 using
`gc-opportunistic-eager-factor' while in gcmh one specify
`gcmh-low-cons-threshold' and `gcmh-high-cons-threshold' but
conceptually looks the same to me.
Am I wrong?
Andrea
next prev parent reply other threads:[~2020-11-18 15:30 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Message-ID: <jwv1rgtjhhy.fsf-monnier+emacs@gnu.org>
2020-11-18 0:20 ` Eager garbage collection Spencer Baugh
2020-11-18 0:20 ` [PATCH 1/3] Add gc-estimated-time variable Spencer Baugh
2020-11-18 17:45 ` Eli Zaretskii
2020-11-18 0:20 ` [PATCH 2/3] Add garbage-collect-maybe function Spencer Baugh
2020-11-18 17:49 ` Eli Zaretskii
2020-11-18 0:20 ` [PATCH 3/3] Start opportunistic GC timer at startup Spencer Baugh
2020-11-18 17:54 ` Eli Zaretskii
2020-11-18 3:45 ` Eager garbage collection Stefan Monnier
2020-11-18 4:05 ` Spencer Baugh
2020-11-18 4:48 ` Stefan Monnier
2020-11-18 8:02 ` Andrea Corallo via Emacs development discussions.
2020-11-18 15:06 ` Eli Zaretskii
2020-11-18 15:30 ` Andrea Corallo via Emacs development discussions. [this message]
2020-11-18 17:19 ` Eli Zaretskii
2020-11-18 17:26 ` Andrea Corallo via Emacs development discussions.
2020-11-18 18:07 ` Eli Zaretskii
2020-11-18 18:19 ` Andrea Corallo via Emacs development discussions.
2020-11-18 15:19 ` Spencer Baugh
2020-11-18 15:47 ` Andrea Corallo via Emacs development discussions.
2020-11-18 16:52 ` Stefan Monnier
2020-11-18 17:12 ` Andrea Corallo via Emacs development discussions.
2020-11-18 17:34 ` Eli Zaretskii
2020-11-18 18:00 ` Eli Zaretskii
2020-11-22 5:07 ` Spencer Baugh
2020-11-22 5:08 ` [PATCH v2 1/3] Add gc-estimated-time variable Spencer Baugh
2020-11-22 18:10 ` Eli Zaretskii
2020-11-22 19:48 ` Stefan Monnier
2020-11-22 5:08 ` [PATCH v2 2/3] Add garbage-collect-maybe function Spencer Baugh
2020-11-22 18:14 ` Eli Zaretskii
2020-11-22 5:08 ` [PATCH v2 3/3] Start opportunistic GC timer at startup Spencer Baugh
2020-12-04 23:19 ` Stefan Monnier
2020-12-05 7:52 ` Eli Zaretskii
2020-12-05 13:55 ` Stefan Monnier
2020-12-05 14:24 ` Eli Zaretskii
2020-12-05 14:41 ` Stefan Monnier
2020-11-22 15:13 ` Eager garbage collection Eli Zaretskii
2020-11-16 4:11 sbaugh
2020-11-16 15:07 ` Stefan Monnier
2020-11-16 16:34 ` Eli Zaretskii
2020-11-16 18:37 ` Stefan Monnier
2020-11-18 18:00 ` yyoncho
2020-11-18 18:16 ` Eli Zaretskii
2020-11-18 21:37 ` Stefan Monnier
2020-11-18 21:59 ` 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=xjfpn4ad6nj.fsf@sdf.org \
--to=emacs-devel@gnu.org \
--cc=akrl@sdf.org \
--cc=eliz@gnu.org \
--cc=sbaugh@catern.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.