[comp.lang.lisp] DOLIST vs. MAP

pop@cs.umass.edu (02/22/91)

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.