all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Gerd Möllmann" <gerd.moellmann@gmail.com>
Cc: pipcet@protonmail.com, yantar92@posteo.net, emacs-devel@gnu.org,
	eller.helmut@gmail.com
Subject: Re: MPS: User GC customizations
Date: Thu, 04 Jul 2024 21:03:46 +0300	[thread overview]
Message-ID: <867ce18265.fsf@gnu.org> (raw)
In-Reply-To: <m2ikxlxf9s.fsf@pro2.fritz.box> (message from Gerd Möllmann on Thu, 04 Jul 2024 19:01:35 +0200)

> From: Gerd Möllmann <gerd.moellmann@gmail.com>
> Cc: Pip Cet <pipcet@protonmail.com>,  yantar92@posteo.net,
>   emacs-devel@gnu.org,  eller.helmut@gmail.com
> Date: Thu, 04 Jul 2024 19:01:35 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Pip Cet <pipcet@protonmail.com>
> >> I'm really confused. Can you explain what you think the difference
> >> is?
> 
> FWIW, I'm also confused.
> 
> > I just did, twice.  If that still doesn't explain it, then I guess my
> > explanatory talents betray me, and I don't know what else to say.
> >
> >> The variable's value is a number. If the variable is zero, we don't
> >> tell MPS we're idle when we're idle. If it's nonzero, we tell it
> >> we're idle (when we are), and how much time it's okay to spend in GC.
> >
> > The number can only tell one thing, not two.  AFAIU, it tells the
> > latter: "how much time it's okay to spend in GC" once GC started due
> > to idleness (and not some other reason).  Gerd said something
> > different: that this number "gives MPS notice" that Emacs is idle.
> > (How can a number "give notice" I don't understand even in principle.)
> 
> By saying that 0 has a special meaning.
> 
> The "once GC started due to idleness" confuses me. We don't "start" GC
> due to idleness.

I didn't say "we" start GC due to idleness, I said that GC starts due
to idleness.  Not necessarily by ourself.

> We allow MPS to do something concurrently, say one or more
> increments in the sense of its incremental GC algorithm. And "GC
> runs" all the time.

You are saying that the whether Emacs is or isn't idle is not relevant
at all to the effect of this variable?  Then why does MPS
documentation talk about "allowing the client program to make use of
idle time to do some garbage collection"?  And why does the doc string
of igc-step-interval itself mention "GC when Emacs is idle"?

IOW, let me turn the table and ask what does "idleness" have to do
with this variable?



  reply	other threads:[~2024-07-04 18:03 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-01  9:26 MPS: Crash when switching to buffer Ihor Radchenko
2024-07-01 12:04 ` Eli Zaretskii
2024-07-01 12:13   ` Ihor Radchenko
2024-07-01 12:46     ` Eli Zaretskii
2024-07-01 14:14   ` Pip Cet
2024-07-01 14:42     ` Gerd Möllmann
2024-07-02  0:22       ` Pip Cet
2024-07-02  4:04         ` Gerd Möllmann
2024-07-02 11:40         ` Ihor Radchenko
2024-07-04 10:31           ` Ihor Radchenko
2024-07-04 11:48             ` Gerd Möllmann
2024-07-04 12:02               ` MPS: User GC customizations (was: MPS: Crash when switching to buffer) Ihor Radchenko
2024-07-04 12:51                 ` MPS: User GC customizations Gerd Möllmann
2024-07-04 13:20                   ` Ihor Radchenko
2024-07-04 14:45                     ` Gerd Möllmann
2024-07-04 15:12                       ` Pip Cet
2024-07-04 16:07                         ` Gerd Möllmann
2024-07-04 16:38                           ` Ihor Radchenko
2024-07-04 17:02                             ` Gerd Möllmann
2024-07-04 17:53                           ` Eli Zaretskii
2024-07-04 18:18                             ` Gerd Möllmann
2024-07-04 18:28                               ` Ihor Radchenko
2024-07-04 18:32                                 ` Pip Cet
2024-07-04 18:43                                   ` Gerd Möllmann
2024-07-04 18:39                               ` Eli Zaretskii
2024-07-04 18:48                                 ` Ihor Radchenko
2024-07-04 13:58                   ` Eli Zaretskii
2024-07-04 14:30                     ` Gerd Möllmann
2024-07-04 15:43                       ` Eli Zaretskii
2024-07-04 15:48                       ` Eli Zaretskii
2024-07-04 15:52                         ` Pip Cet
2024-07-04 16:04                           ` Eli Zaretskii
2024-07-04 17:01                             ` Gerd Möllmann
2024-07-04 18:03                               ` Eli Zaretskii [this message]
2024-07-04 18:28                                 ` Gerd Möllmann
2024-07-04 18:43                                   ` Eli Zaretskii
2024-07-04 19:09                                     ` Gerd Möllmann
2024-07-04 19:12                                       ` Eli Zaretskii
2024-07-04 16:38                     ` Pip Cet
2024-07-04 17:06                       ` Gerd Möllmann

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=867ce18265.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=eller.helmut@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=gerd.moellmann@gmail.com \
    --cc=pipcet@protonmail.com \
    --cc=yantar92@posteo.net \
    /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.