Closed GoogleCodeExporter closed 9 years ago
r5d9a2c897598 contains changes to significantly improve the stack usage of the
pretty printers. In particular, the following code now runs quickly and without
overflowing the stack:
{{{
import org.kiama.output.PrettyPrinter
import PrettyPrinter._
def show (n : Int) : Doc = hsep ((1 to n) map value)
val many = List.fill (100000) (4)
pretty (vsep (many map show))
}}}
Note the 100000 instead of 1000 in the bug report.
Original comment by inkytonik
on 21 Jun 2013 at 3:58
Original comment by inkytonik
on 4 Jul 2013 at 12:23
Original comment by inkytonik
on 3 Feb 2014 at 4:25
Original issue reported on code.google.com by
inkytonik
on 18 Apr 2013 at 4:06