Ann: HAllInOne bug fix release

Simon Peyton-Jones simonpj@microsoft.com
Thu, 31 Jul 2003 08:44:20 +0100


Something very odd is going on.  GHC does not generate programs than run
3x faster between GHC versions. =20

If, perhaps, you compiled both without -O, no cross-module inlining
takes place.  That would account for a big slow down when using separate
compilation.  I see you use -O2 this time.

I don't know why the all in one version might go slower though

S

| -----Original Message-----
| From: haskell-admin@haskell.org [mailto:haskell-admin@haskell.org] On
Behalf Of Hal Daume
| Sent: 31 July 2003 00:23
| To: Wolfgang Jeltsch; The Haskell Mailing List
| Subject: RE: Ann: HAllInOne bug fix release
|=20
| Ah, apparently it is not (at least not the Cygwin version).
|=20
| I recompiled NHC with GHC -O2, both the separate compilation version
and
| the all-in-over version.  Averaged over five runs, we see that the
| separate compilation version is actually *faster* than the ai1
version:
|=20
| standard nhc compiled with ghc:
|=20
| real    0m27.167s
| user    0m9.991s
| sys     0m1.304s
|=20
| nhc all-in-one:
|=20
| real    0m31.411s
| user    0m10.007s
| sys     0m1.299s
|=20
|=20
|=20
| i am completely unable to explain this.  someone want to hazard a
guess?
|=20
|  - hal, who is a bit disappointed now :(
|=20
|  --
|  Hal Daume III                                   | hdaume@isi.edu
|  "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume
|=20
|=20
| > -----Original Message-----
| > From: haskell-admin@haskell.org
| > [mailto:haskell-admin@haskell.org] On Behalf Of Wolfgang Jeltsch
| > Sent: Wednesday, July 30, 2003 2:59 PM
| > To: The Haskell Mailing List
| > Subject: Re: Ann: HAllInOne bug fix release
| >
| >
| > On Wednesday, 2003-07-30, 23:36, CEST, Hal Daume III wrote:
| > > [...]
| >
| > > A few people have asked me for speed-up results from
| > All-In-One-ifying code,
| > > so here's a good one.  We take two versions of NHC.  One is
| > the original
| > > binary distribution and the other is the All-In-One-ified
| > version, compiled
| > > by GHC.
| >
| > Hi,
| >
| > is the original binary distribution compiled with GHC? If
| > not, the speed-up
| > may also be the result of using a different compiler (i.e., GHC).
| >
| > > [...]
| >
| > Wolfgang
| >
| > _______________________________________________
| > Haskell mailing list
| > Haskell@haskell.org
| > http://www.haskell.org/mailman/listinfo/haskell
| >
| _______________________________________________
| Haskell mailing list
| Haskell@haskell.org
| http://www.haskell.org/mailman/listinfo/haskell