#3039: strange space usage
-----------------------------------------+----------------------------------
    Reporter:  igloo                     |        Owner:                  
        Type:  run-time performance bug  |       Status:  new             
    Priority:  normal                    |    Milestone:                  
   Component:  Compiler                  |      Version:  6.10.1          
    Severity:  normal                    |   Resolution:                  
    Keywords:                            |   Difficulty:  Unknown         
    Testcase:                            |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple          |  
-----------------------------------------+----------------------------------
Comment (by simonmar):

 Running the two versions of the program with +RTS -hT (no profiling) show
 identical heap profiles.  Most of the stuff in the heap is Handles and
 Handle-related things.  It looks like we're retaining quite a few Handles,
 perhaps because the finalizers take a while to run (the Handles are
 closed, but still in memory until the finalizer has run).  The reason we
 have lots of retained list data that belongs to `f` is because each Handle
 contains its filename, and the filename was generated by `f`.

 Why it apparently goes away when inlining `g`, I've no idea.  Could just
 random scheduling behaviour, perhaps all the finalizers are running
 earlier.  Or it could be a profiling bug.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3039#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to