Floating point performance

Marcin 'Qrczak' Kowalczyk qrczak@knm.org.pl
29 Jan 2001 21:24:27 GMT


Mon, 29 Jan 2001 18:15:02 +0100, Jan Kort <kort@wins.uva.nl> pisze:

> I didn't use any optimizations, but I am sure that
> passing -O to ghc will make it see that 1*1*... is a
> constant expression.

It does not, because it's n*1*1*1*... where n is not a constant.
Major advantages seem to be from the strictness analysis.

-- 
 __("<  Marcin Kowalczyk * qrczak@knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK