23% of calls to map fuse away

Hi, I just compiled all¹ of Stackage LTS 2.9 with GHC 7.8.4 with -ddump-rule-firings, and counted the occurrences of the rules. Here is a fun fact: 23% of all (static) occurrences of "map" fuse away². And 50387 lists are fused away in total³ Full data at https://gist.github.com/nomeata/071c1f87450cf668bbeb Greetings, Joachim ¹ but the SDL2 bindings ² 16925 × rule map 12904 × rule mapList, which fires if no fusion happened. ³ 27846 × rule fold/build 11293 × rule foldr/single 11248 × rule augment/build -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org

Very interesting. I imagine most of those were not crafted to be fused. Out of curiosity, why 7.8 instead of 7.10 or HEAD? Cheers, :) -- Felipe.

Speculating, LTS Haskell 2.9 is designed to build with GHC 7.8.4 but
no such guarantees are made for GHC 7.10/HEAD.
On Thu, May 21, 2015 at 7:57 PM, Felipe Lessa
Very interesting. I imagine most of those were not crafted to be fused.
Out of curiosity, why 7.8 instead of 7.10 or HEAD?
Cheers, :)
-- Felipe.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

The stackage nightlies recently switching to building with 7.10.1 https://www.stackage.org/nightly Alan On Thu, May 21, 2015 at 9:15 PM, Matthew Pickering < matthewtpickering@gmail.com> wrote:
Speculating, LTS Haskell 2.9 is designed to build with GHC 7.8.4 but no such guarantees are made for GHC 7.10/HEAD.
On Thu, May 21, 2015 at 7:57 PM, Felipe Lessa
wrote: Very interesting. I imagine most of those were not crafted to be fused.
Out of curiosity, why 7.8 instead of 7.10 or HEAD?
Cheers, :)
-- Felipe.
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe

Hi, Am Donnerstag, den 21.05.2015, 21:24 +0200 schrieb Alan & Kim Zimmerman:
The stackage nightlies recently switching to building with 7.10.1
so I thought, but I looked at https://www.stackage.org/, which still says “The above releases require GHC 7.8.”, confusing me and making me use the LTS release. I’ll re-run this with a nightly and GHC-7.10 soon. Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org

Hi, Am Donnerstag, den 21.05.2015, 20:15 +0100 schrieb Matthew Pickering:
Speculating, LTS Haskell 2.9 is designed to build with GHC 7.8.4 but no such guarantees are made for GHC 7.10/HEAD.
correct speculation. Although I only noticed midway that I actually need GHC 7.10 to get the numbers I care about (namely map/coerce), which wasn’t in GHC 7.8 to start with. But it was a good exercise. Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0xF0FBF51F Debian Developer: nomeata@debian.org
participants (4)
-
Alan & Kim Zimmerman
-
Felipe Lessa
-
Joachim Breitner
-
Matthew Pickering