Limit impact of O(n^2) type analysis by imposing limit
authorAndy Wingo <wingo@pobox.com>
Wed, 14 May 2014 19:42:09 +0000 (21:42 +0200)
committerAndy Wingo <wingo@pobox.com>
Thu, 15 May 2014 15:39:24 +0000 (17:39 +0200)
commita7ee377dbe40403fbc40d40309b89dc6e748e9b0
tree9929e001756ec7c1ad97733505636d33ec61567b
parenta77e3a7c8aea5e803b1ac8787a5eb9161e4fb139
Limit impact of O(n^2) type analysis by imposing limit

* module/language/cps/types.scm (infer-types): Add #:max-label-count
  argument.

* module/language/cps/type-fold.scm (compute-folded, fold-constants*):
  Disable for big functions.  Perhaps we can relax this if we find an
  O(n log n) way to represent types.
module/language/cps/type-fold.scm
module/language/cps/types.scm