-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor step 2: replace Node traversal with ast.NodeVisitor #93
Conversation
…all valid python files
…oml beyond the specified test-folder
….files()" This reverts commit 193af08.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a no from me.
ast.NodeVisitor
has always inexplicably awful performance. I think @jgberry benchmarked a 20% overall increase in runtime over my original @singledispatch
implementation, and the current custom dispatch implementation is another 10% to 15% better than that one.
Dispatching based on name is also just less clean than dispatching based on type.
Yep, see #42 for the performance related discussion. This was a decision we consciously made. Whether it was the right decision, perhaps that can be revisited. There are tradeoffs on either side. |
I see that now. I did some performance profiling too and found similar results.. |
depends on #91
see #92 for discussion.