Performance of tables slower than built in?
Adam D. Ruppe
destructionator at gmail.com
Wed May 22 00:55:37 UTC 2019
On Wednesday, 22 May 2019 at 00:22:09 UTC, JS wrote:
> I am trying to create some fast sin, sinc, and exponential
> routines to speed up some code by using tables... but it seems
> it's slower than the function itself?!?
There's intrinsic cpu instructions for some of those that can do
the math faster than waiting on memory access.
It is quite likely calculating it is actually faster. Even
carefully written and optimized tables tend to just have a very
small win relative to the cpu nowadays.
More information about the Digitalmars-d-learn
mailing list