Hugs faster than GHC

Simon Peyton-Jones simonpj at microsoft.com
Fri Dec 14 08:06:17 EST 2007


It's a perf bug in 6.6, happily fixed in 6.8.1

Simon

| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org [mailto:glasgow-haskell-users-bounces at haskell.org] On Behalf Of
| Bernd Brassel
| Sent: 14 December 2007 12:59
| To: glasgow-haskell-users at haskell.org
| Subject: Hugs faster than GHC
|
| The following program reveals a performance bug in ghc 6.6
|
| module HCBenchmark where
|
| type M1 a = ()
| type M2 a = M1 a
| type M3 a = M2 a
| type M4 a = M3 a
| type M5 a = M4 a
|
|
| type M a = M4 a -- use M5 for 10 times the compile time and M3 for 1/10
|
| f :: M (M (M (M (M (M (M (M (M (M x)))))))))
| f = ()
|
| Each element you add in the chain of type synonyms adds a factor of ten
| to the compile time. Hugs is "a bit" faster :o)
|
| Trouble is, the module I wanted to compile originally, takes an
| estimated 6 thousand and 600 hours to compile and I am not sure that
| this bug is the only obstacle for the compiler ...
|
| Could anyone cope if that is still a problem with the newest instance of
| ghc?
|
| Thanks a lot
| Bernd
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


More information about the Glasgow-haskell-users mailing list