all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* MPS question: small object allocation
@ 2024-06-26 14:31 Daniel Colascione
  2024-06-26 15:20 ` Gerd Möllmann
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel Colascione @ 2024-06-26 14:31 UTC (permalink / raw)
  To: emacs-devel

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?



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-26 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-26 14:31 MPS question: small object allocation Daniel Colascione
2024-06-26 15:20 ` Gerd Möllmann

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.