Slow UDF call?
Giovanni Di Maria
calimero22 at yahoo.it
Sat Aug 17 21:42:00 UTC 2019
On Saturday, 17 August 2019 at 20:57:44 UTC, Giovanni Di Maria
> On Saturday, 17 August 2019 at 20:15:02 UTC, Stefan Koch wrote:
>> On Saturday, 17 August 2019 at 19:43:22 UTC, Giovanni Di Maria
>> Yes they do
>> A function call has a cost.
>> In case of a function which performes a 1 cycle (nominally
>> without ILP) operation, the overhead of the function call
>> try compiling with -inline and compare again.
> Hi Stefan Koch
> Thank you very much.
> With the option -inline, now the execution is very fast,
> only 4 seconds....
> Thnak you thank you very much.
I have also compiled with:
dmd program.d -O -release -inline -boundscheck=off
and the execution speed is very very fast.
More information about the Digitalmars-d-learn