-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Interpreter #1394
Merged
Merged
Interpreter #1394
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Now we don't have to mutate the `InputValueDefinition` node after it's allocated.
Make all AST nodes "read-only" data structures
Make language nodes immutable
[Language::Visitor] use method-based visit handlers
This was referenced Jul 23, 2018
Closed
…cle and same data needs
Good work! Is there any benchmark on the performance increase/decreased memory usage? |
See #1886 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem:
.dup
ing them for each possible concrete type. This is a serious problem forNode
queries written by Relay, see WIP - Benchmarking validation with a bigger schema and query #1172 . In fact, in many cases, this is exponential time complexity, bad!@skip
is hardcoded inRewrite
, even static queries must go through that step.Solution:
Rewrite
step)Problems with the solution:
irep_node
s go out the windowPossible solutions to problems with the solution:
Possible problems with possible solutions to problems with the solution:
TODO
rewrite with cps instead of blocks?reconsider this as a perf consideration and customization option, later.with_*
methods.:__temp_running_interpreter
? (Something that doesn't clutter user'sctx.to_h
)LateBoundType
Profilecan be done after initial mergeCustom directivescan be done after initial mergerescue_fromskipped the tests for this, it would be good to replace it with something.# TODO
s and address themresolve_field_2