#6099: filepath library a lot bigger in 7.4.2 RC 1
---------------------------------+------------------------------------------
    Reporter:  igloo             |       Owner:  pcapriotti      
        Type:  bug               |      Status:  new             
    Priority:  highest           |   Milestone:  7.4.2           
   Component:  Compiler          |     Version:  7.4.2-rc1       
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------

Comment(by pcapriotti):

 Replying to [comment:4 simonpj]:
 > and that this inlining (plus three other fns) led to '''doubling''' the
 size of the binary?

 Actually, the whole `splitDrive` function is being inlined (and it wasn't
 in 7.4.1).

 > Do you know why it makes such a big difference?  Are there a '''lot'''
 of calls to `readDriveLetter`?

 There are quite a few calls to `splitDrive`, which is rather large.

 > Can you make a small test case that demonstrates the unwanted inlining?
 (I assume inlining is happening that does not give a big pay-off.)

 I attached a slimmed-down version of `System.FilePath.Internal` which
 shows the doubling in binary size.

 > I don't want people to have to add pragmas to suppress code bloat that
 gives no useful performance benefit.

 Sure, the patch wasn't meant as a solution, just a demonstration of the
 problem.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/6099#comment:5>
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