Ticket #2450 (new bug)
Data.Complex.magnitude squares using ^(2 :: Int), which is slow
| Reported by: | igloo | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | 7.4.1 |
| Component: | libraries/base | Version: | 6.8.3 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Runtime performance bug | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
