emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Add new lisp function length= with bytecode support


From: Clément Pit-Claudel
Subject: Re: [PATCH] Add new lisp function length= with bytecode support
Date: Mon, 6 Mar 2017 15:45:32 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 2017-03-06 15:36, Gdobbins wrote:
>> Why add length= as a primitive? Why is it important enough to
>> justify that?
> 
> … I don't really see a purpose in using nthcdr like you have in a
> lisp implementation of length=, it isn't any better than just using
> length directly since it requires just as much linked list traversal.

Isn't Richard's code much faster for long lists and small Ns thank taking the 
length of the list?

Clément.



 




reply via email to

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