
#10014: Data.Array.Base.elems needlessly calls bounds. -------------------------------------+------------------------------------- Reporter: ekmett | Owner: ekmett Type: feature request | Status: new Priority: normal | Milestone: Component: Core Libraries | Version: 7.8.4 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Runtime | Unknown/Multiple performance bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by hvr): Replying to [ticket:10014 ekmett]:
It appears at some point someone optimized it to use the `unsafeAt`, but never removed the bounds check.
that happened here: https://git.haskell.org/packages/array.git/commitdiff/0c4b7d714dd82072ea95c5... -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10014#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler