unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Daniel Colascione <dancol@dancol.org>
To: emacs-devel@gnu.org
Subject: MPS question: small object allocation
Date: Wed, 26 Jun 2024 10:31:02 -0400	[thread overview]
Message-ID: <87jzibg4ih.fsf@dancol.org> (raw)

I'm catching up on the MPS branch.  I'm super excited to see Emacs get a
modern GC.  (I regret that I never found time to finish my
attempt from a few years ago.) It looks like MPS supports both manual
memory management by pool and automatic garbage collection.  Is there
anything that might help us deal with the problem of having tons of
small objects?  In a traditional JVM-style GC, each object begins with a
type-word of some sort (sometimes inflated for locking, etc.)  This
approach is inefficient for small objects: a cons cell, for example,
would have 50% overhead, because it'd have to have one machine word for
the type, then two machine words for car and cdr.  Does MPS have a way
to eliminate this per-object overhead for objects like cons cells,
markers, and so on?



             reply	other threads:[~2024-06-26 14:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-26 14:31 Daniel Colascione [this message]
2024-06-26 15:20 ` MPS question: small object allocation 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

  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=87jzibg4ih.fsf@dancol.org \
    --to=dancol@dancol.org \
    --cc=emacs-devel@gnu.org \
    /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).