all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "Tyler Dodge" <tyler@tdodge.consulting>,
	 "Stefan Kangas" <stefan@marxist.se>,
	 "Emacs developers" <emacs-devel@gnu.org>
Subject: Re: "Significant Garbage Collection Improvement For Emacs" - sweep_conses performance improved by 50%?
Date: Sun, 30 Oct 2022 08:53:12 +0800	[thread overview]
Message-ID: <87ilk2jfnr.fsf@yahoo.com> (raw)
In-Reply-To: <jwvy1syiupx.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sat, 29 Oct 2022 10:32:39 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Basically you're replacing 1kB blocks with 32kB blocks, which indeed
> seems very reasonable.  Back when I introduced those blocks (and their
> associated bitmaps) I chose 1kB because I wanted something small enough
> that it couldn't be worse than what we had before, not because it was
> the best choice.

It may be worth nothing that I chose a cons and float block size of 4
times the page size while working with the incremental GC, which ends up
16k on most systems.  However, there are also two pairs of markbits in
each block.

I haven't seen anything bad happen from that choice yet.  But there,
BLOCK_ALIGN is gone in the first place, and it relies on valloc
returning suitably aligned memory.



  reply	other threads:[~2022-10-30  0:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-29  5:07 "Significant Garbage Collection Improvement For Emacs" - sweep_conses performance improved by 50%? Stefan Kangas
2022-10-29  5:19 ` Christopher Dimech
2022-10-29  5:41 ` Po Lu
2022-10-29  6:07   ` Tyler Dodge
2022-10-29 14:32     ` Stefan Monnier
2022-10-30  0:53       ` Po Lu [this message]
2023-02-11 20:10     ` Ihor Radchenko
2023-02-12 21:58       ` Konstantin Kharlamov
2023-02-13 20:07         ` Konstantin Kharlamov

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=87ilk2jfnr.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=stefan@marxist.se \
    --cc=tyler@tdodge.consulting \
    /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.