Only lazily compile where profitable
authorAndy Wingo <wingo@pobox.com>
Thu, 12 Mar 2015 13:48:03 +0000 (14:48 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 12 Mar 2015 13:48:03 +0000 (14:48 +0100)
commitfe7ecee8204fa79bfebcc925b82e1e670ed34cea
tree022c0576cbfd763fc870ea09b5f60ef655ffa61c
parent7fee63b947730fbafb073b08bee8eceb6a07c975
Only lazily compile where profitable

* module/ice-9/eval.scm (primitive-eval): Only lazily compile box-ref on
  toplevel variables; otherwise compile eagerly to avoid the
  indirection.
module/ice-9/eval.scm