-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use if
instead of MacroTools
#9
Comments
That was just added by #7 . We can revert the MacroTools changes as suggested. @devmotion ? |
Can I give this issue a try? |
Yes |
Yes seems like we should replace all occurrences of |
Yes, all the utility functions like |
Closed by #11 |
FYI there's a fix for this in this PR – FluxML/MacroTools.jl#104 Would be nice to hear if you see an improvement in this case. |
MacroTools' pattern matching is very slow, mostly due to using exceptions to signal no-match. This causes JuliaLang/julia#28221. Ideally MacroTools can be fixed too, but in the meantime it seems easier to switch this package to use simple tests like
isexpr(ex, :call) && ex.args[1] == :+
instead of MacroTools. Of course that can be abstracted intoiscall(ex, :+)
, etc. --- feel free to go nuts with that.The text was updated successfully, but these errors were encountered: