summaryrefslogtreecommitdiff
path: root/test/files/run/t2818.check
Commit message (Collapse)AuthorAgeFilesLines
* SI-2818 Make List.foldRight always do a reverse/foldLeft flipJames Iry2013-01-311-0/+4
Benchmarks show that lists smaller than 110 elements or so doing reverse/foldLeft is faster than recursively walking to the end of the list and then folding as the stack unwinds. Above that 110 element threshold the recursive procedure is faster. Unfortunately, at some magic unknown large size the recursive procedure blows the stack. This commit changes List#foldRight to always do reverse/foldLeft.