-
Notifications
You must be signed in to change notification settings - Fork 0
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
V3: Removed indirection from asset graph #298
base: main
Are you sure you want to change the base?
Conversation
6638b73
to
f72eb16
Compare
f72eb16
to
ee85e3e
Compare
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.
Separated this into a dedicated function, removed recursion and removed the closure. I removed the closure because it's annoying to deal with move
semantics in the closure - particularly as we refactor the request tracker approach in the future.
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.
This is more a concern for the binding layer rather than of the AssetGraph
itself. Extracted it into a function, should probably move it into node_bindings
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.
Trying to keep this data structure focused on being a holder of data and minimize manipulation of that data in methods.
Essentially, this is just a graph with add/get methods, consumers decide what to do with the data so the details of manipulations to the data live at the call site
AssetNode
andDependencyNode
stored directly in theAssetGraph
avoiding the need for externalVec<_>
and tracking both thenode_index
andvec_index
AssetGraph
only handle data storage and operation on the data structure are externalized and done at the call site.**_nx
naming convention forAssetGraphNode
s, egasset_nx
(meaningasset_node_index
)