commit 4b25bb8e20bf3c1419a11b7d4cfefa23e4f3279b Author: Stas Boukarev <email address hidden> Date: Mon May 14 05:12:45 2012 +0400
Optimize copy-tree.
copy-tree used to always call itself, even on linear lists, which caused stack exhaustion on long lists. Make it copy linear lists linearly, and recur only when necessary. This also makes it somewhat faster.
commit 4b25bb8e20bf3c1 419a11b7d4cfefa 23e4f3279b
Author: Stas Boukarev <email address hidden>
Date: Mon May 14 05:12:45 2012 +0400
Optimize copy-tree.
copy-tree used to always call itself, even on linear lists, which
caused stack exhaustion on long lists. Make it copy linear lists
linearly, and recur only when necessary. This also makes it somewhat
faster.