#4442: Add unaligned version of indexWordArray#
---------------------------------+------------------------------------------
Reporter: tibbe | Owner:
Type: feature request | Status: new
Priority: normal | Component: libraries (other)
Version: 7.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
`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>
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