Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

New GHC fails to specialize imported function
I just installed the new Haskell platform for OS X. It seems to have caused a major performance regression for a program I'm working on, making it well over 25x slower. The culprit appears to be that the new GHC (7.10.2) fails to specialize an imported function. If I manually add a SPECIALIZE pragma, performance goes back to around what it used to be. The code in question is located at https://github.com/wyager/HNet . As it stands, the code takes about 30 seconds to run on my machine. With the previous haskell-platform, it only took about .9 seconds. If I modify Operations.hs and uncomment the SPECIALIZE pragma, runtime goes down to about 1.1 seconds (still slower for some reason, but not awful). To test, compile with -O2 (as the program makes heavy use of Data.Vector, which requires -fspec-constr for performance). <details><summary>Trac metadata</summary> | Trac field | Value | | ---------------------- | ------------ | | Version | 7.10.2 | | Type | Bug | | TypeOfFailure | OtherFailure | | Priority | normal | | Resolution | Unresolved | | Component | Compiler | | Test case | | | Differential revisions | | | BlockedBy | | | Related | | | Blocking | | | CC | | | Operating system | | | Architecture | | </details> <!-- {"blocked_by":[],"summary":"New GHC fails to specialize imported function","status":"New","operating_system":"","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.10.2","keywords":["inline,","performance,","specialize"],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"I just installed the new Haskell platform for OS X.\r\n\r\nIt seems to have caused a major performance regression for a program I'm working on, making it well over 25x slower.\r\n\r\nThe culprit appears to be that the new GHC (7.10.2) fails to specialize an imported function. If I manually add a SPECIALIZE pragma, performance goes back to around what it used to be. \r\n\r\nThe code in question is located at https://github.com/wyager/HNet .\r\n\r\nAs it stands, the code takes about 30 seconds to run on my machine. With the previous haskell-platform, it only took about .9 seconds. \r\n\r\nIf I modify Operations.hs and uncomment the SPECIALIZE pragma, runtime goes down to about 1.1 seconds (still slower for some reason, but not awful).\r\n\r\nTo test, compile with -O2 (as the program makes heavy use of Data.Vector, which requires -fspec-constr for performance).","type_of_failure":"OtherFailure","blocking":[]} -->
issue