all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
To: "John Wiegley" <johnw@newartisans.com>
Cc: emacs-devel@gnu.org
Subject: Re: [Request] seq-map and mapcar with arbitrary number of sequences
Date: Sun, 11 Oct 2015 16:51:04 -0400	[thread overview]
Message-ID: <E1ZlNaC-00077E-Ld@fencepost.gnu.org> (raw)
In-Reply-To: <m21td2k448.fsf@newartisans.com> (johnw@newartisans.com)

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

  > Those two functions are used in a large number of places. Adding support for a
  > "&rest seqs" argument rather than "seq" could impact performance, as it now
  > has to walk a one-element seqs to get the seq it had directly before. I
  > believe it would add another cons cell to the memory footprint, to package the
  > argument?

We could add a facility to define a &rest function to specify
another function to handle the one-arg case.  That way, the simple
case now handled would be essentially as efficient as it is now,
interpreted.

Byte compiled, the optimiziation is easier since it can be done
purely inside the byte compiler.

-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




  parent reply	other threads:[~2015-10-11 20:51 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
2015-10-11 20:36           ` Nicolas Petton
2015-10-11 20:48             ` John Wiegley
2015-10-11 20:51   ` Richard Stallman [this message]
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=E1ZlNaC-00077E-Ld@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@newartisans.com \
    /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.