
#7666: excessive space and time usage for rendering (somewhat) deeply nested Docs -----------------------------+---------------------------------------------- Reporter: j.waldmann | Owner: Type: bug | Status: new Priority: normal | Component: libraries/pretty Version: 7.6.2 | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Blockedby: Blocking: | Related: -----------------------------+---------------------------------------------- I was running into serious performance problems when printing moderately sized Doc and Xml data (HaXml goes via Doc). Since pretty is shipped with ghc, this is potentially dangerous. Users will just assume that these core components are tried and tested, and working efficiently. More info: http://article.gmane.org/gmane.comp.lang.haskell.cafe/103210 See also: http://stackoverflow.com/questions/9761507/which-pretty-print-library Test case (builds an Xml tree with HaXml and renders it via the pretty library): https://github.com/jwaldmann/haskell-tpdb/blob/master/test/speed.hs -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7666 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler