[GHC] #2450: Data.Complex.magnitude squares using ^(2 :: Int),
which is slow
GHC
trac at galois.com
Fri Jul 18 08:22:03 EDT 2008
#2450: Data.Complex.magnitude squares using ^(2 :: Int), which is slow
-------------------------------+--------------------------------------------
Reporter: igloo | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10.1
Component: libraries/base | Version: 6.8.3
Severity: normal | Keywords:
Difficulty: Unknown | Testcase:
Architecture: Unknown | Os: Unknown
-------------------------------+--------------------------------------------
Data.Complex.magnitude squares using `^(2 :: Int)`, which is slow. Either
it should use `sqr x = x * x` or a rule should rewrite `e ^ (2 :: Int)` to
do so (or perhaps both; the RULE for general cases, and the manual `sqr`
for hugs etc).
More detail in this thread:
http://www.haskell.org/pipermail/haskell-cafe/2008-July/045327.html
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2450>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list