Subject: Re: Short question: the letter n
From: (Rob Warnock)
Date: 2000/04/29
Newsgroups: comp.lang.lisp
Message-ID: <8eel5l$57005$>
F. Xavier Noria  <> wrote:
| (Rob Warnock) wrote:
| : Not only that, but doing an NREVERSE of "old" data with a generational GC
| : can actually be *slower* than REVERSE...
| So, when you need to [n]reverse a list, what are the reasons you consider
| in order to choose the version you will use?

Most of the time, I go ahead and use NREVERSE if I've just consed up the
list (e.g., collected some results in a loop or tree walk), since that's
the common idiom and since "new" conses probably haven't been promoted to
older generations yet anyway, and use REVERSE everywhere else.


Rob Warnock, 41L-955
Applied Networking
Silicon Graphics, Inc.		Phone: 650-933-1673
1600 Amphitheatre Pkwy.		PP-ASEL-IA
Mountain View, CA  94043