Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use an IBLockCacheNode for passing a node + private constants.
Within BlockProperties BlockCache and IBlockCacheNode ("read only") get passed, removing id/data/shape from arguments. If a property is not set in the node, it'll be fetched from the block cache, but the node is not updated from outside the BlockCache. For subsequent calls, the node would be updated by the block cache, if it isn't a node stored by the BlockChangeTracker from an earlier time, and similar. This way, opportunistic passable checking can be implemented, by switching to cached nodes instead of id/data/shape arguments with lazy fetching from BlockCache. The name IBlockCacheNode seems to be appropriate, since we'll pass it alongside with a BlockCache anyway.
- Loading branch information
Showing
2 changed files
with
36 additions
and
9 deletions.
There are no files selected for viewing
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
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