[GHC] #14882: memchr#

GHC ghc-devs at haskell.org
Tue Mar 20 02:31:00 UTC 2018


#14882: memchr#
-------------------------------------+-------------------------------------
        Reporter:  andrewthad        |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):  Phab:D4472
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 Is there a benefit to baking it in as a primop rather than making it an
 FFI function in `base` or even `ghc-prim`? If not, I don't see the point.
 Personally, I suspect that there is not ''yet'' a benefit, but that there
 might be one in the future. In particular, if we ever have sufficient
 support for vector registers, we might get a small speed boost by
 implementing `memchr#` ourselves and inlining it.

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


More information about the ghc-tickets mailing list