[project @ 1999-11-11 21:13:12 by andy]
authorandy <unknown>
Thu, 11 Nov 1999 21:13:12 +0000 (21:13 +0000)
committerandy <unknown>
Thu, 11 Nov 1999 21:13:12 +0000 (21:13 +0000)
commita2ba15db67abb18446ae3033f435f2d85e8e5676
tree81d563faa1bd11e964ebb0d539e9726a844c1184
parentef33e424275bd9f8ac8059e7a52d2ca144b00885
[project @ 1999-11-11 21:13:12 by andy]
This change provided by Alastair Reid is a bunch of wibbles which fix
some severe performance problems in the copy of the Pretty library
distributed with Hugs-Sept99.

The problems show up when making heavy use of hsep (eg printing large
numbers of comma separated lists which tend to run over the end of
line).  The problems manifest themselves as the infamous "control
stack overflow" and seem to be due to the generation of large
Int thunks that look something like this:

  80 - 4 - 1 - 1 - 3 - 1 - ... -1

(There may be a few +'s in there too but -'s predominate.)
ghc/lib/exts/Pretty.lhs