peval: fix algorithmic behavior of `cons'
authorAndy Wingo <wingo@pobox.com>
Tue, 27 Sep 2011 07:48:18 +0000 (09:48 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 27 Sep 2011 22:13:55 +0000 (00:13 +0200)
commitfbc9387f68be677663e6756c35afa973a9dc0a1a
treef51b2b232271fd1aeb7e672f66eb37555e070926
parent58b5a2d4e10d2afb34dfcb086d2550e936800b3f
peval: fix algorithmic behavior of `cons'

* module/language/tree-il/optimize.scm (peval): Fix treatment of `cons'
  to not process the value twice, leading to n^2 work.  This prevented
  primitives.scm from compiling in a reasonable amount of time, because
  it contained a `(foo ... ,@bar) form that resulted in a long sequence
  of nested conses, and no effort counter was in place as it was not
  within an inlining attempt.
module/language/tree-il/optimize.scm