You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been playing with stdLambda and a doubt is gnawing my head. Why is the evaluation of a function like sin(x)so slow compared to numeric evaluation in this class module, given the fact it is a single operation?
The text was updated successfully, but these errors were encountered:
ws-garcia
changed the title
stdLambda **performance**stdLambda #performance
Jan 14, 2022
It's difficult to say for sure, it could be due to a number of reasons. Happy for help looking into exactly why. The relevant parts of the code are as follows:
In general though it's likely because at min-3 stack pops are required (Func symbol, argLength, arg + timeWhileEvaluating); where with standard numerical evaluation only 1 stack pop is required (arg).
I have been playing with
stdLambda
and a doubt is gnawing my head. Why is the evaluation of a function likesin(x)
so slow compared to numeric evaluation in this class module, given the fact it is a single operation?The text was updated successfully, but these errors were encountered: