[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: To be a list or not
From: |
Stephen J. Turnbull |
Subject: |
Re: To be a list or not |
Date: |
Sun, 30 Dec 2007 09:54:41 +0900 |
Tom Tromey writes:
> >>>>> "Stephen" == Stephen J Turnbull <address@hidden> writes:
>
> Stephen> But please call it `true-list-p', which is the name of the
> Stephen> similar XEmacs built-in.
>
> Here's one stab at it. This is basically lifted from safe-length.
Looks very familiar.
XEmacs implements one change you might think about. Specifically, it
delays starting the tortoise until the length is "long enough to
suspect circularity". I don't know if the value chosen was tuned or
not. As I understand it, this makes the function slightly faster for
shorter lists, slightly slows down longer true lists, and might double
the detection time for cyclical lists.
Looks like a win to me, but YMMV.
- Re: To be a list or not, (continued)
- Re: To be a list or not, Lennart Borgman (gmail), 2007/12/28
- Re: To be a list or not, Nick Roberts, 2007/12/28
- Re: To be a list or not, Lennart Borgman (gmail), 2007/12/28
- Re: To be a list or not, Bob Rogers, 2007/12/28
- Re: To be a list or not, Stephen J. Turnbull, 2007/12/29
- Re: To be a list or not, Miles Bader, 2007/12/29
- Re: To be a list or not, Tom Tromey, 2007/12/29
- Re: To be a list or not, Andreas Schwab, 2007/12/29
- Re: To be a list or not, Tom Tromey, 2007/12/31
- Re: To be a list or not, Andreas Schwab, 2007/12/31
- Re: To be a list or not,
Stephen J. Turnbull <=
- Re: To be a list or not, Bob Rogers, 2007/12/29
- Re: To be a list or not, Richard Stallman, 2007/12/29
- Re: To be a list or not, Richard Stallman, 2007/12/29
Re: To be a list or not, Eric Hanchrow, 2007/12/28
Re: To be a list or not, Richard Stallman, 2007/12/29