emacs-devel
[Top][All Lists]
Advanced

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

Re: [Emacs-diffs] master eb83344: Speed up (nthcdr N L) when L is circul


From: Paul Eggert
Subject: Re: [Emacs-diffs] master eb83344: Speed up (nthcdr N L) when L is circular
Date: Tue, 21 Aug 2018 02:10:45 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Pip Cet wrote:
(nthcdr 1 (cons 'a 'b)) should probably be 'b, though.

Yes, Glenn also noted that bug. I fixed it by installing the attached patch. It also follows your suggestion of a quick path for small N (where we can omit both circularity and quit testing), plus to use EQ to compare objects. Thanks for checking the patch.

Attachment: 0001-Fix-glitches-introduced-by-nthcdr-changes.patch
Description: Text Data


reply via email to

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