emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Request] seq-map and mapcar with arbitrary number of sequences


From: Artur Malabarba
Subject: Re: [Request] seq-map and mapcar with arbitrary number of sequences
Date: Sat, 10 Oct 2015 22:53:20 +0100

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).

On 10 Oct 2015 9:10 pm, "John Wiegley" <address@hidden> wrote:
>>>>> David Kastrup <address@hidden> writes:

> The byte compiler should be able to squash the difference, right?

If you can demonstrate that to me, I'm sold. As long as the C code doesn't
change, and the increase in complexity vanishes at byte-compilation time, I
have no argument.

John


reply via email to

[Prev in Thread] Current Thread [Next in Thread]