-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Try this:
import Text.PrettyPrint
import System.Environment
main = do
[ s ] <- getArgs
print $ iterate ( \ x -> fsep [ text "a" , x <+> text "b" ] ) empty !! read s
on my machine:
input | runtime in sec
100 | 0.1
200 | 1.1
300 | 4.4
400 | 11.4
This testcase is simplified from https://ghc.haskell.org/trac/ghc/ticket/7666
I think this bug (gut feeling - some quadratic behaviour) has been sitting there for a long time.
I do think this is serious. I think it also hurts haddock.
pretty-1.1.3.2 for ghc-8.0.0.20160111 and pretty-1.1.2.0 for ghc-7.10.3
Metadata
Metadata
Assignees
Labels
No labels