-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Skymeld] Make --notrack_incremental_state work with Skymeld.
These 2 facts were incompatible: * --notrack_incremental_state does not keep any edge in the graph. * Skymeld relies exclusively on graph traversal of the transitive closure of a top level ActionLookupValue to collect the ALVs for conflict checking. This CL allows Skymeld to utilize the collection of ALVs present in the graph at the point of conflict checking, similar to how it's done in regular blaze. However, it introduces an optimization to keep the performance reasonable: * [Brute force] For each conflict check, iterate through all the nodes in the graph, return those with ALVs. This has O(num_top_level_alv x num_nodes_in_graph) time complexity. * [Optimized] For each conflict check, return only the evaluated ALVs since the last conflict check. This has O(num_top_level_alv + num_nodes_in_graph) time complexity. PiperOrigin-RevId: 502849785 Change-Id: I8b99845a23999a34afc84041bd509a6cc57affd2
- Loading branch information
Showing
3 changed files
with
80 additions
and
6 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
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