From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r113437: New unwind-protect flavors to better type-check C callbacks.
Date: Wed, 24 Jul 2013 10:08:39 -0400 [thread overview]
Message-ID: <jwvhafkqciy.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <51EF80E6.9020300@cs.ucla.edu> (Paul Eggert's message of "Wed, 24 Jul 2013 08:23:18 +0100")
> Yes, but the old code had the same problem: make_save_pointer (P)
> created an object that could not be safely used if P's storage was
> freed at the C level.
Oh, that's right.
> Certainly any such performance degradation should be swamped by the
> other performance improvements inherent to the change, as there's no
> longer a need to invoke make_save_pointer, so there's no need to
> create and then garbage-collect an object for each of these
> record_unwind_protect calls: that's such a win that it should be well
> worth possibly losing one branch-predict miss.
I'm not sure about "well worth" because AFAIK these make_save_pointer
calls were only in non-performance-sensitive areas, whereas unbind_to is
used all the time. But I agree that the overall impact is probably
small enough.
Stefan
prev parent reply other threads:[~2013-07-24 14:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1UzCuc-0001NQ-T1@vcs.savannah.gnu.org>
2013-07-22 4:13 ` [Emacs-diffs] trunk r113437: New unwind-protect flavors to better type-check C callbacks Stefan Monnier
2013-07-23 9:00 ` Paul Eggert
2013-07-23 13:21 ` Stefan Monnier
2013-07-24 7:23 ` Paul Eggert
2013-07-24 14:08 ` Stefan Monnier [this message]
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=jwvhafkqciy.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=eggert@cs.ucla.edu \
--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.