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