Performance of tables slower than built in?
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Fri May 24 08:33:34 UTC 2019
On Thursday, 23 May 2019 at 21:47:45 UTC, Alex wrote:
> Either way, sin it's still twice as fast. Also, in the code the
> sinTab version is missing the writeln so it would have been
> faster.. so it is not being optimized out.
Well, when I run this modified version:
https://gist.github.com/run-dlang/9f29a83b7b6754da98993063029ef93c
on https://run.dlang.io/
then I get:
LUT: 709
sin(x): 2761
So the LUT is 3-4 times faster even with your quarter-LUT
overhead.
More information about the Digitalmars-d-learn
mailing list