From: Eli Zaretskii <eliz@gnu.org>
To: "Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: last_marked array is now ifdef'ed away
Date: Sun, 15 Sep 2024 08:51:11 +0300 [thread overview]
Message-ID: <86o74pea7k.fsf@gnu.org> (raw)
In-Reply-To: <C4347033-BBC0-4593-ADE9-3DAC46ED5A88@gmail.com> (message from Mattias Engdegård on Sat, 14 Sep 2024 22:30:11 +0200)
> From: Mattias Engdegård <mattias.engdegard@gmail.com>
> Date: Sat, 14 Sep 2024 22:30:11 +0200
> Cc: emacs-devel@gnu.org
>
> 14 sep. 2024 kl. 19.30 skrev Eli Zaretskii <eliz@gnu.org>:
>
> > That's the nature of things that are needed rarely. But when they
> > _are_ needed, there's nothing to replace them, and that's when you
> > appreciate their existence. Like safety belts, these features are
> > never a waste.
>
> No, this device doesn't improve safety in any way. At best it's a special-purpose single-channel flight data recorder mounted in such a way that it disrupts the airflow and increases fuel consumption. Let's see if we can make it a bit more streamlined.
I'm okay with FDR analogy. As anyone who saw Air Crash Investigation
series knows, this is invaluable in investigating the (very rare!)
airplane crashes.
> > 16 is way too few. GC is deeply recursive, and when I used this, I
> > almost always had to look at much more than 16 objects.
>
> Note that the GC recursion is now almost entirely handled by mark_stack. 512 entries is an entire x86 page; surely that can be trimmed?
I'd need to see actual evidence for a shorter array, based on actual
GC run of some data structure.
Also, how bad is the penalty for accessing 512-element array vs a
16-element array? Unless it's close to 10% or exceeds that, I
wouldn't bother.
next prev parent reply other threads:[~2024-09-15 5:51 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-07 6:05 last_marked array is now ifdef'ed away Eli Zaretskii
2024-09-12 9:19 ` Eli Zaretskii
2024-09-13 14:43 ` Mattias Engdegård
2024-09-13 15:21 ` Eli Zaretskii
2024-09-14 17:05 ` Mattias Engdegård
2024-09-14 17:30 ` Eli Zaretskii
2024-09-14 20:30 ` Mattias Engdegård
2024-09-15 5:51 ` Eli Zaretskii [this message]
2024-09-15 13:58 ` Mattias Engdegård
2024-09-15 14:21 ` Eli Zaretskii
2024-09-17 10:15 ` Mattias Engdegård
2024-09-17 13:22 ` Eli Zaretskii
2024-09-14 22:50 ` Stefan Kangas
2024-09-15 6:01 ` Eli Zaretskii
2024-09-16 18:07 ` Andrea Corallo
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=86o74pea7k.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mattias.engdegard@gmail.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 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).