Opened 4 years ago

Closed 4 years ago

#4367 closed bug (fixed)

Compiler space regression in 7.0.1 RC 1

Reported by: igloo Owned by: igloo
Priority: high Milestone: 7.0.1
Component: Compiler Version: 7.1
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Compile-time performance bug Test Case:
Blocked By: Blocking:
Related Tickets: Differential Revisions:

Description

There's a compiler space regresion in 7.0.1 RC 1. Seems to be around a factor of 2. Compiling WURFL-0.1

With a cut-down version, note the "<n>M in use":

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.12.3
$ ghc --make WURFL -O -dshow-passes +RTS -t
[...]
<<ghc: 908052456 bytes, 1592 GCs, 7050782/13011048 avg/max bytes residency (15 samples), 31M in use, 0.00 INIT (0.00 elapsed), 1.11 MUT (1.28 elapsed), 0.91 GC (0.86 elapsed) :ghc>>
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.0.20100924
$ time ghc --make WURFL -O -dshow-passes +RTS
<<ghc: 973268040 bytes, 1699 GCs, 8225353/20188024 avg/max bytes residency (13 samples), 52M in use, 0.00 INIT (0.00 elapsed), 1.33 MUT (1.41 elapsed), 0.87 GC (0.94 elapsed) :ghc>>

The Result sizes look comparable between the two compilers, so the next step is probably to try with a profiled compiler.

Attachments (1)

WURFL.hs (75.6 KB) - added by igloo 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by igloo

comment:1 Changed 4 years ago by simonmar

  • Owner set to igloo

comment:2 Changed 4 years ago by igloo

  • Status changed from new to merge

Fixed by:

Wed Oct 20 14:15:39 BST 2010  Ian Lynagh <[email protected]>        
  * Avoid hanging on to old unfoldings; fixes #4367 (compiler space regression)

comment:3 Changed 4 years ago by igloo

  • Resolution set to fixed
  • Status changed from merge to closed

Merged.

Note: See TracTickets for help on using tickets.