Commit fa504e7
committed
Optimize
* The `visit` function will no longer attempt to deep copy nodes when there is an edit. Shallow copies are perfectly acceptable, since we are only overwriting attributes on edit.
* The `Visitor` class now pre-calculates an AST Type to Handler map in the metaclass, allowing for a much quicker enter/leave implementation.
* Install `six`.visitor implementation.1 parent 78e1eab commit fa504e7
File tree
7 files changed
+344
-35
lines changed- graphql/core
- language
- utils
- scripts
7 files changed
+344
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
0 commit comments