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
From what I read online it is said JS engines typically don't inline polymorphic function variables (like values, which has two possible values internals.mv and internals.pv). So I figure using a boolean flag isMV instead and do the casting with a (constant) function internals.mv(isMV, ...values) might speed things up.
Turns out it's slower. The Internet shall not be trusted!!!
Although I implemented apply codegen syntax (compile to spread arguments call fn(x,y,...z)) for this experiment, which could be useful later.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
From what I read online it is said JS engines typically don't inline polymorphic function variables (like
values, which has two possible valuesinternals.mvandinternals.pv). So I figure using a boolean flagisMVinstead and do the casting with a (constant) functioninternals.mv(isMV, ...values)might speed things up.Turns out it's slower. The Internet shall not be trusted!!!
Although I implemented
applycodegen syntax (compile to spread arguments callfn(x,y,...z)) for this experiment, which could be useful later.Beta Was this translation helpful? Give feedback.
All reactions