unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: 32405@debbugs.gnu.org
Subject: bug#32405: Turning misc objects into pseudovectors
Date: Wed, 08 Aug 2018 23:58:10 -0400	[thread overview]
Message-ID: <jwva7pw9p07.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: <988905f1-fb41-9559-300d-d015bda4b791@cs.ucla.edu> (Paul Eggert's message of "Wed, 8 Aug 2018 20:07:30 -0700")

> Bug#32405 contains a patch that will get rid of the miscellaneous-object
> category of the Emacs Lisp interpreter, and will change these objects to be
> pseudovectors instead.  The motivation is to simplify the interpreter and
> garbage collector and speed it up slightly, and to simplify potential
> future changes.

I like the idea, but:

AFAIK the main issue with pseudovectors is that their allocation is
slower and suffers more from fragmentation (because we don't use
a size-segregated allocation algorithm (like Linux's SLAB, for example)
for them).

Are you sure the new code is faster overall?

There is also a potential issue in terms of the resulting heap size of
markers (which may bump up from 6 words to 8 words, IIRC, unless your
patch does something to keep it down to 6), tho this is probably of no
real consequence.


        Stefan





       reply	other threads:[~2018-08-09  3:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <988905f1-fb41-9559-300d-d015bda4b791@cs.ucla.edu>
2018-08-09  3:58 ` Stefan Monnier [this message]
2018-08-09 16:31 ` bug#32405: Turning misc objects into pseudovectors Tom Tromey
     [not found] ` <8736vn8pso.fsf@tromey.com>
2018-08-09 17:22   ` Paul Eggert
2018-08-09 18:27   ` Eli Zaretskii
     [not found]   ` <83o9ebo0or.fsf@gnu.org>
2018-08-10 13:43     ` Tom Tromey
     [not found]     ` <87o9ea5od7.fsf@tromey.com>
2018-08-12  1:53       ` Paul Eggert
     [not found]       ` <ce9022a7-c1cf-4969-d769-2d2c33a1f2af@cs.ucla.edu>
2018-08-14 19:11         ` Paul Eggert
2018-08-09  2:58 bug#32405: [PATCH] Turn " Paul Eggert
2018-08-09  5:01 ` bug#32405: Turning " Paul Eggert
2018-08-09  7:16   ` Paul Eggert
2018-08-09 16:24   ` Stefan Monnier

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=jwva7pw9p07.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=32405@debbugs.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).