-
Notifications
You must be signed in to change notification settings - Fork 194
Improve performance of class variables #2259
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
b843739
Move existing class variable nodes into a package
chrisseaton 7821651
Factor out ResolveTargetModuleForClassVariablesNode
chrisseaton ddfcab4
Factor out LookupClassVariableNode
chrisseaton d576e25
Isolate logic for resolveTargetModuleForClassVariables
chrisseaton 246a54f
Don't need @Cached("create()")
chrisseaton beec5aa
Factor out SetClassVariableNode
chrisseaton 1135c05
Remove some boundaries in class variable metaprogramming
chrisseaton 52d419e
Factor out CheckClassVariableNameNode
chrisseaton 7257bb8
Formatting
chrisseaton 3d905a1
Fix bad renaming
chrisseaton 619870e
Cache ResolveTargetModuleForClassVariablesNode
chrisseaton e9e5523
Pull out some of the abstraction in classVariableLookup
chrisseaton db89ab9
In LookupClassVariableNode, separate looking up the right storage and…
chrisseaton 3d93110
Factor out LookupClassVariableStorageNode
chrisseaton 0fa259f
Switch to using a DynamicObject for class variable storage
chrisseaton edc192d
Use an inline cache for reading from class variable storage when it's…
chrisseaton 9c2adde
Use execute methods not call specialisations directly
chrisseaton ef9d44d
Fix bug in CheckClassVariableNameNode guard
chrisseaton 99e4661
Fix deprecation
chrisseaton 36bd41f
Primitives in ClassVariableStorage
chrisseaton 45555d2
lookupClassVariable only needs to look in the shape
chrisseaton c3ec258
Tidy up
chrisseaton e7e5ae2
Cache a common case in LookupClassVariableStorageNode
chrisseaton d7dc8db
Cache a common case in SetClassVariableNode
chrisseaton c5dbda8
Tidy up
chrisseaton 75f1f2b
Change log entry
chrisseaton 4648df1
Fix-up
chrisseaton 0195592
Use DynamicObjectLibrary in LookupClassVariableStorageNode
chrisseaton ff467bd
Use DynamicObjectLibrary SetClassVariableNode
chrisseaton 5420eff
Simplify trySetClassVariable using putIfPresent
chrisseaton b34d04d
Add the whole ClassVariableStorage instance as an adjacent object to …
chrisseaton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
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.
@woess Isn't there a more direct way to do a (shallow) copy of a DynamicObject?
There used to be
DynamicObject#copy
, but I see nothing similar in DynamicObjectLibrary.