
#11143: Feature request: Add index/read/write primops with byte offset for ByteArray# -------------------------------------+------------------------------------- Reporter: vagarenko | Owner: sjakobi Type: feature request | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.2 Resolution: | Keywords: newcomers Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D4433 Wiki Page: | -------------------------------------+------------------------------------- Comment (by vagarenko): Replying to [comment:8 sjakobi]:
Replying to [comment:7 vagarenko]:
I'm confused. Why do you want this? Isn't `byte offset` here is just `type offset * sizeof type`?
While I'm not the requester, I think the types that [comment:2 Mathnerd314 proposes] have two advantages:
* They relieve the user from doing the byte offset computation. Then what does that `Int# {-byte offset-}` parameter mean?
-- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11143#comment:9 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler