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'd love to use Cassette to do some nifty things with my code but just a no-op overdub already makes it run 10x slower (probably stuff related to #91). My gut feeling (could well be wrong) is that if I could bail out of overdubbing before I get to the very bottom of my call tree, I can still do everything I want with the high-level function calls but not take the overhead. Is there any mechanism to do this, or would it even work? I'm thinking something like prehook could return a boolean of whether to actually overdub the expression, and if it was false, it would just call the original function.
The text was updated successfully, but these errors were encountered:
Since Cassette is the land of endless possibilty variants of that are indeed possible. You can write a bespoke pass that inserts Expr(:nooverdub, ...) around the arguments to call.
I'd love to use Cassette to do some nifty things with my code but just a no-op overdub already makes it run 10x slower (probably stuff related to #91). My gut feeling (could well be wrong) is that if I could bail out of overdubbing before I get to the very bottom of my call tree, I can still do everything I want with the high-level function calls but not take the overhead. Is there any mechanism to do this, or would it even work? I'm thinking something like
prehook
could return a boolean of whether to actually overdub the expression, and if it was false, it would just call the original function.The text was updated successfully, but these errors were encountered: