#4442: Add unaligned version of indexWordArray#
----------------------------------+-----------------------------------------
    Reporter:  tibbe              |        Owner:              
        Type:  feature request    |       Status:  new         
    Priority:  normal             |    Milestone:              
   Component:  libraries (other)  |      Version:  7.1         
    Keywords:                     |     Testcase:              
   Blockedby:                     |   Difficulty:              
          Os:  Unknown/Multiple   |     Blocking:              
Architecture:  Unknown/Multiple   |      Failure:  None/Unknown
----------------------------------+-----------------------------------------
Description changed by igloo:

Old description:

> `indexWordArray#` takes an offset in whole words, making it impossible to
> do unaligned reads on platforms that support such reads. This has
> performance implications for some programs e.g. implementations of
> MurmurHash.
>
> I propose we add versions of `indexWord*Array` that take byte offsets.
> The user is responsible for only using those on platforms that support
> them and the implementation is free to crash if they're used elsewhere.

New description:

 `indexWordArray#` takes an offset in whole words, making it impossible to
 do unaligned reads on platforms that support such reads. This has
 performance implications for some programs e.g. implementations of
 !MurmurHash.

 I propose we add versions of `indexWord*Array` that take byte offsets. The
 user is responsible for only using those on platforms that support them
 and the implementation is free to crash if they're used elsewhere.

--

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4442#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to