Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!noao!ncar!zaphod.mps.ohio-state.edu!samsung!crackers!m2c!umvlsi!dime!cs.umass.edu!pop From: pop@cs.umass.edu Newsgroups: comp.lang.lisp Subject: DOLIST vs. MAP Keywords: dolist, inline Message-ID: <27021@dime.cs.umass.edu> Date: 21 Feb 91 19:17:24 GMT References: 3085 Sender: news@dime.cs.umass.edu Reply-To: pop@cs.umass.edu () Organization: University of Massachusetts, Amherst Lines: 5 straightforward implementation dolist is going to be faster, since it will give rise to a simple loop, whereas mapcar will have to be called as a subroutine, and then it will call its functional argument at each step of the iteration. However a smart compiler can expand mapcar into inline code, so that the difference in speed is negligable.