From: "John Wiegley" <johnw@newartisans.com>
To: emacs-devel@gnu.org
Subject: Re: [Request] seq-map and mapcar with arbitrary number of sequences
Date: Sat, 10 Oct 2015 16:24:33 -0700 [thread overview]
Message-ID: <m2h9lygvda.fsf@newartisans.com> (raw)
In-Reply-To: <CAAdUY-+B8XutSH-rOn9o-C+uvrnbt0o-oraBBGRENn3heyNjgA@mail.gmail.com> (Artur Malabarba's message of "Sat, 10 Oct 2015 22:53:20 +0100")
>>>>> Artur Malabarba <bruce.connor.am@gmail.com> writes:
> Yes. Supporting this on mapc and mapcar should not incur a performance cost on
> the single seq version. I figured the c code for these functions could just
> check if the &rest argument is nil, and then use the current (single seq)
> implementation.
> If this single conditional imposes a noticeable overhead we can optimise it
> out with a compiler macro too (I think).
The main reason I'd like it to be zero cost is that, once the change is made,
there will be zero users of it. All existing code uses a single list, and it
will be some time before authors feel confident enough in breaking backwards
compatibility to start using multiple lists. So for a few years, at least,
there will be no benefit except the knowledge that consistency has been
improved. The gain is too small for it to be worth a real cost.
John
next prev parent reply other threads:[~2015-10-10 23:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-10 7:24 [Request] seq-map and mapcar with arbitrary number of sequences bruce.connor.am
2015-10-10 17:47 ` John Wiegley
2015-10-10 17:58 ` David Kastrup
2015-10-10 20:10 ` John Wiegley
2015-10-10 21:53 ` Artur Malabarba
2015-10-10 23:24 ` John Wiegley [this message]
2015-10-11 20:36 ` Nicolas Petton
2015-10-11 20:48 ` John Wiegley
2015-10-11 20:51 ` Richard Stallman
2015-10-11 21:10 ` Nicolas Petton
2015-10-12 9:27 ` Michael Heerdegen
2015-10-13 12:42 ` David Kastrup
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=m2h9lygvda.fsf@newartisans.com \
--to=johnw@newartisans.com \
--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.