Optimize MAPCAR on large lists.
commit1feb1b4fe9aa1c479d735117b174607843845a17
authorStas Boukarev <stassats@gmail.com>
Mon, 29 Feb 2016 13:02:57 +0000 (29 16:02 +0300)
committerStas Boukarev <stassats@gmail.com>
Mon, 29 Feb 2016 13:09:36 +0000 (29 16:09 +0300)
treed70f862e9681cb1942bb592e0bf50d863e7a069c
parent1045363e31e3d4c525814f945a8130edb5763293
Optimize MAPCAR on large lists.

When accumulating a new list don't write 0 and not NIL into the CDR of
a new cons, it'll be overwritten on the next iteration and 0 is not
actually written to the heap, since it's already zeroed. Replace 0
with NIL at the end.
src/compiler/seqtran.lisp