Subject: Re: Short question: the letter n
From: rpw3@rigden.engr.sgi.com (Rob Warnock)
Date: 2000/04/29
Newsgroups: comp.lang.lisp
Message-ID: <8eel5l$57005$1@fido.engr.sgi.com>
F. Xavier Noria  <fxn@retemail.es> wrote:
+---------------
| rpw3@rigden.engr.sgi.com (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

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