[GHC] #8901: (very) bad inline heuristics
GHC
ghc-devs at haskell.org
Thu Jan 12 16:33:59 UTC 2017
#8901: (very) bad inline heuristics
-------------------------------------+-------------------------------------
Reporter: heisenbug | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler | Version: 7.7
Resolution: invalid | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime | Unknown/Multiple
performance bug | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by heisenbug):
Here come the latest stats (with today's GHC HEAD) :
{{{
$ ls -l ./libraries/time/dist-install/build/Data/Time/Format.*o
-rw-r--r-- 1 ggreif lb40 482568 Jan 12 16:24 ./libraries/time/dist-
install/build/Data/Time/Format.dyn_o
-rw-r--r-- 1 ggreif lb40 514776 Jan 12 16:24 ./libraries/time/dist-
install/build/Data/Time/Format.o
$ wc -l ./libraries/time/lib/Data/Time/Format.hs
254 ./libraries/time/lib/Data/Time/Format.hs
$ strip ./libraries/time/dist-install/build/Data/Time/Format.*o
$ ls -l ./libraries/time/dist-install/build/Data/Time/Format.*o
-rw-r--r-- 1 ggreif lb40 201512 Jan 12 17:26 ./libraries/time/dist-
install/build/Data/Time/Format.dyn_o
-rw-r--r-- 1 ggreif lb40 187712 Jan 12 17:26 ./libraries/time/dist-
install/build/Data/Time/Format.o
$ ghc -e "187712/254"
739.0236220472441
}}}
As you can see a single line of Format.hs gets compiled to 739 stripped
bytes.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8901#comment:12>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list