Ticket #2450 (new bug)

Opened 4 years ago

Last modified 4 months ago

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

Changed 4 years ago by igloo

  • type changed from bug to run-time performance bug

Changed 3 years ago by simonmar

  • architecture changed from Unknown to Unknown/Multiple

Changed 3 years ago by simonmar

  • os changed from Unknown to Unknown/Multiple

Changed 3 years ago by igloo

  • owner set to igloo

Changed 3 years ago by igloo

  • owner igloo deleted
  • milestone changed from 6.10.1 to 6.12 branch

I've fixed magnitude, but we might still want to add the RULE.

Changed 2 years ago by simonmar

  • failure set to Runtime performance bug

Changed 22 months ago by igloo

  • milestone changed from 6.12 branch to 6.12.3

Changed 20 months ago by igloo

  • priority changed from normal to low
  • milestone changed from 6.12.3 to 6.14.1

Changed 14 months ago by igloo

  • milestone changed from 7.0.1 to 7.0.2

Changed 11 months ago by igloo

  • milestone changed from 7.0.2 to 7.2.1

Changed 4 months ago by igloo

  • milestone changed from 7.2.1 to 7.4.1
Note: See TracTickets for help on using tickets.