Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] speed
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-01-21 (13:16)
From: Daniel Andor <da209@c...>
Subject: Re: Coyote Gulch test in Caml (was Re: [Caml-list] speed )
On Tuesday 21 January 2003 1:09 pm, David Chase wrote:
> At 02:39 AM 1/21/2003 +0500, Nickolay Semyonov-Kolchin wrote:
> >Speed and accuracy are different things. Matlab class software need
> > accuracy, most computer games need speed. This is the reason of
> > "-ffast-math" key in gcc. Ocaml lacks such key, and always produce
> > ineffecient floating-point code.
> But how much accuracy do computer games need?  First-class implementations
> of sin/cos in software are quite fast, indeed faster (in certain
> non-trivial ranges) than the hardware itself.  If it happens that you could
> determine how *little* accuracy you actually need, it could go faster yet
> :-).

If only a few significant figures are of interest to you then you could use 
lookup tables, no?  How would the lookup overhead compare with the actual 
computation time?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: