[GHC] #15426: `elemIndex` and `findIndex` still can't fuse

GHC ghc-devs at haskell.org
Sun Aug 12 04:58:32 UTC 2018


#15426: `elemIndex` and `findIndex` still can't fuse
-------------------------------------+-------------------------------------
        Reporter:  kabuhr            |                Owner:  kabuhr
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:  8.8.1
       Component:  libraries/base    |              Version:  8.4.3
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
                                     |  testsuite/tests/perf/should_run/T15426.hs
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |  https://phabricator.haskell.org/D5063
-------------------------------------+-------------------------------------

Comment (by kabuhr):

 I also ran the nofib benchmark suite with and without the change
 (switching `findIndices` from `INLINE` to `INLINABLE`).  The change
 resulted in a slight increase (3%) to memory usage for the `cacheprof`
 benchmark with no change to elapsed time, and a large decrease (41%) to
 memory usage for the `maillist` benchmark.  There were no other memory
 usage differences.

 There were variations in elapsed time across the benchmark suite in both
 directions over the range -5.6% to +4.4, but these appear to be spurious.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15426#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list