Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest |Owner: Type: compile-time performance bug | Status: new Priority: normal|Milestone: 6.12.1 Component: Compiler | Version: 6.4.2 Severity: normal| Resolution: Keywords: performance | Difficulty: Unknown Testcase:| Os: Unknown/Multiple Architecture: Unknown/Multiple | -+-- Changes (by igloo): * milestone: 6.10.2 = 6.12.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:20 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: compile-time performance bug | Status: new Priority: normal| Milestone: 6.10.2 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords: performance | Difficulty: Unknown Testcase:| Architecture: Unknown/Multiple Os: Unknown/Multiple | --+- Changes (by igloo): * milestone: 6.10.1 = 6.10.2 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:19 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: compile-time performance bug | Status: new Priority: normal| Milestone: 6.10.1 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords: performance | Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by igloo): * milestone: 6.8.3 = 6.10.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:16 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: igloo Type: compile-time performance bug | Status: new Priority: normal| Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords: performance | Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by igloo): * type: merge = compile-time performance bug -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:14 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: compile-time performance bug | Status: new Priority: normal| Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords: performance | Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by igloo): * owner: igloo = -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:15 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest| Owner: igloo Type: merge| Status: new Priority: normal | Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal | Resolution: Keywords: performance | Difficulty: Unknown Testcase: | Architecture: Multiple Os: Multiple | -+-- Comment (by igloo): I've merged the patch. Also, just to clarify, the patch `Add and use seqBitmap when constructing SRTs` is actually in a later stage of the compiler (although I did find that problem while looking at this bug). Going directly to a bitmap, rather than first making the `SRTEntries`, might be a way to fix this bug. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:13 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest| Owner: igloo Type: merge| Status: new Priority: normal | Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal | Resolution: Keywords: performance | Difficulty: Unknown Testcase: | Architecture: Multiple Os: Multiple | -+-- Changes (by simonpj): * owner: = igloo * type: compile-time performance bug = merge Comment: OK I have fixed the immediate problem. {{{ Thu Mar 6 13:47:34 GMT 2008 [EMAIL PROTECTED] * Fix Trac #783: improve short-cutting literals in the type checker }}} Ian can you merge, and (somehow) add a test case to the test suite? I'm not sure how to fully solve the quadratic behaviour in general. The reason that the lits were appearing in the SRT is because the dictionary for `Num Float` has a CAF in it. So, as Ian says, there really are N sub- SRTs for the various stages of evaluation. However things are now less bad than before: * Ian has made the SRTs use bitmaps: {{{ Wed Feb 27 06:45:05 PST 2008 Ian Lynagh [EMAIL PROTECTED] * Add and use seqBitmap when constructing SRTs }}} * The above patch from me makes the literal problem go away for `Float` and `Double` (common cases) However, as Simon M says, I'm not sure why the N sub-SRTS don't all share a single table, and that should really kill off the quadratic behaviour in this case. That is the remaining bit that would be worth investigating. Maybe leave the ticket open for that. Simon -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:12 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: compile-time performance bug | Status: new Priority: normal| Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords: performance | Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by simonmar): * type: bug = compile-time performance bug -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest| Owner: Type: bug | Status: new Priority: normal | Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal | Resolution: Keywords: performance | Difficulty: Unknown Testcase: | Architecture: Multiple Os: Multiple | -+-- Changes (by igloo): * keywords: = performance -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8 branch Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by simonmar): * priority: high = normal -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8.3 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by simonpj): * milestone: 6.8 branch = 6.8.3 Comment: See also #1875, #1136 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: high |Milestone: 6.8 Component: Compiler | Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Os: Multiple | Testcase: Architecture: Multiple | -+-- Changes (by guest): * cc: [EMAIL PROTECTED] = [EMAIL PROTECTED], [EMAIL PROTECTED] -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: high |Milestone: 6.8 Component: Compiler | Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Os: Multiple | Testcase: Architecture: Multiple | -+-- Changes (by guest): * cc: = [EMAIL PROTECTED] -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file -+-- Reporter: guest |Owner: Type: bug | Status: new Priority: high |Milestone: 6.8 Component: Compiler | Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Os: Multiple | Testcase: Architecture: Multiple | -+-- Changes (by simonmar): * priority: normal = high -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file --+- Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: 6.8 Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Difficulty: Unknown Testcase:| Architecture: Multiple Os: Multiple | --+- Changes (by igloo): * milestone: = 6.8 * testcase: = Comment: Still a problem in 6.6 and the HEAD. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [GHC] #783: performance problem compiling large file
#783: performance problem compiling large file ---+ Reporter: guest | Owner: Type: bug | Status: new Priority: normal| Milestone: Component: Compiler |Version: 6.4.2 Severity: normal| Resolution: Keywords:| Os: Multiple Difficulty: Unknown | Architecture: Multiple ---+ Changes (by simonmar): * architecture: x86 = Multiple * severity: major = normal * summary: ghc internal error = performance problem compiling large file * os: Windows = Multiple Old description: Windows XP, GHC 6.4.2 binary package. Will attach the relevant module. ... Compiling Dist ( ./Dist.hs, ./Dist.o ) ghc: internal error: update_fwd: unknown/strange object 0 Please report this as a compiler bug. See: http://www.haskell.org/ghc/reportabug New description: Windows XP, GHC 6.4.2 binary package. Will attach the relevant module. {{{ ... Compiling Dist ( ./Dist.hs, ./Dist.o ) ghc: internal error: update_fwd: unknown/strange object 0 Please report this as a compiler bug. See: http://www.haskell.org/ghc/reportabug }}} Comment: I'm 99% certain the crash has been fixed; see #787. However I tried the attached file, and it loaded without error on my 6.4.2 installation here. Changing the title to reflect the performance problem, this is definitely an issue. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/783 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler___ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs