how to break up a large module?

Simon Peyton-Jones simonpj@microsoft.com
Fri, 30 May 2003 13:20:18 +0100


60% longer is a lot. I'm surprised.

I'd try compiling the whole thing both ways with profiling on and see if
that reveals anything

S

| -----Original Message-----
| From: haskell-cafe-admin@haskell.org
[mailto:haskell-cafe-admin@haskell.org] On Behalf Of David
| Roundy
| Sent: 30 May 2003 13:06
| To: haskell-cafe@haskell.org
| Subject: how to break up a large module?
|=20
| I recently spent a couple of hours breaking up a large module (2.5k
lines)
| into several smaller modules.  When I finally got it working, I found
that
| my program took about 60% longer to run.  This was running ghc with -O
| optimization.
|=20
| Any suggestions how to go about breaking up a module in such a way
that it
| doesn't slow things down? Do I just have to go adding INLINE
directives to
| all my functions? Or is there some other trick I could use?
|=20
| For the moment I've reverted to my single big file method, but it
certainly
| would be handy to be able to break that up so that it wouldn't take so
long
| to recompile.
| --
| David Roundy
| http://www.abridgegame.org
| _______________________________________________
| Haskell-Cafe mailing list
| Haskell-Cafe@haskell.org
| http://www.haskell.org/mailman/listinfo/haskell-cafe