Changes between Initial Version and Version 1 of Ticket #11029


Ignore:
Timestamp:
Oct 28, 2015 11:22:50 AM (2 years ago)
Author:
NeilMitchell
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #11029 – Description

    initial v1  
    2121The eta-expanded variant is 3x slower. Adding a trace breaks that transformation, and then the code goes 3x faster. Specifically:
    2222
    23 {noformat}
     23{{{#!hs
    2424test2 [1,2,3,4,5,6,7,8,9,10] = \x -> x
    2525test2 _ = trace "here" $ \x -> negate x
    26 {noformat}
     26}}}
    2727
    2828Timings, as reported by Criterion under O2 with GHC 7.10.2, are: