From: David Kastrup <dak@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: Pure nil and t?
Date: Mon, 22 Sep 2014 10:51:59 +0200 [thread overview]
Message-ID: <871tr4m40g.fsf@fencepost.gnu.org> (raw)
In-Reply-To: 541FDFF8.8060405@yandex.ru
Dmitry Antipov <dmantipov@yandex.ru> writes:
> For a long byte-compile runs, ~15-17% of objects seen by GC are nil and t
> (especially nil, which is ~10x more "popular" than t). What about making
> them pure? Thus way they will be quickly filtered out by PURE_POINTER_P
> check in mark_object, thus offloading GC from an in-depth examination of
> them each time when they're found.
In my Emacs I see
M-: (symbol-plist nil) RET
(event-symbol-element-mask (nil 0) event-symbol-elements (nil) modifier-cache ((0)))
M-: (symbol-plist t) RET
(event-symbol-element-mask (t 0) event-symbol-elements (t) modifier-cache ((0 . t)))
While I consider it likely that those are the result of glitches and/or
bugs, it would be nice if those glitches did not lead to crashes by
letting these plists get collected in spite of being accessible.
I have no idea whether this would be the case. It's just that I can
imagine it to be.
--
David Kastrup
next prev parent reply other threads:[~2014-09-22 8:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-22 8:38 Pure nil and t? Dmitry Antipov
2014-09-22 8:51 ` David Kastrup [this message]
2014-09-22 9:16 ` Andreas Schwab
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=871tr4m40g.fsf@fencepost.gnu.org \
--to=dak@gnu.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 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.