Hugs faster than GHC

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Hugs faster than GHC

Bernd Brassel
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
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

RE: Hugs faster than GHC

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

Simon

| -----Original Message-----
| From: [hidden email] [mailto:[hidden email]] On Behalf Of
| Bernd Brassel
| Sent: 14 December 2007 12:59
| To: [hidden email]
| 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
| [hidden email]
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Reply | Threaded
Open this post in threaded view
|

Re: Hugs faster than GHC

Bernd Brassel
Simon Peyton-Jones schrieb:
> It's a perf bug in 6.6, happily fixed in 6.8.1

Great news! Thank you!
_______________________________________________
Glasgow-haskell-users mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users