[Haskell-cafe] Data.Complex.magnitude slow?

Henning Thielemann lemming at henning-thielemann.de
Fri Jul 18 08:56:27 EDT 2008


On Fri, 18 Jul 2008, stefan kersten wrote:

> for implementing scaleFloat and exponent on the bitlevel as lennart 
> suggested, it would be preferable if the cast would be compiled to a register 
> move/reinterpretation, rather than a store/load through several layers of 
> abstraction (such as Data.Binary). i'm just curious ;)

Ok, but then you need a check, whether the numbers on your machine are in 
IEEE format. This check could be done when configuring 'base' package. The 
current implementation in GHC.Float could be used as fall-back.


More information about the Haskell-Cafe mailing list