Well it's 3,000 source lines long, which is certainly big for GHC.
(-dshow-passes show big code and long times for each pass.) Maybe that's all
it is -- in which case it might be a good plan to split it up. But I also
wonder whether
* Some particular aspect of the code is triggering bad behaviour, perhaps
duplicating lots of code somehow.
* There is something badly non-linear, so that eg a file with a lot of top-level
defns takes a non-linear time to process. This seems entirely possible.
If you had a moment to look that would be great.
Simon
| -----Original Message-----
| From: [email protected] [mailto:[email protected]] On
| Behalf Of Ian Lynagh
| Sent: 18 September 2012 17:56
| To: [email protected]
| Subject: Re: DynFlags.lhs
|
| On Tue, Sep 18, 2012 at 04:42:03PM +0000, Simon Peyton-Jones wrote:
| > Somehow compiling DynFlags.lhs has started taking a very long time, and
| generates lots of code. I have not had time to investigate, but if anyone
has any
| idea what is happening I'd be happy to know.
|
| I've added some more stuff to it recently. In particular, a large type:
| includes/dist-derivedconstants/header/GHCConstantsHaskellType.hs
| and lots of little wrapper functions:
| includes/dist-derivedconstants/header/GHCConstantsHaskellWrappers.hs
| get #included into it now. I haven't looked into which is responsible
| yet, though.
|
|
| Thanks
| Ian
|
|
| _______________________________________________
| Cvs-ghc mailing list
| [email protected]
| http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc