-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SYSTEMDS-418] Performance improvements lineage reuse probing/spilling
This patch makes some minor performance improvements to the lineage reuse probing and cache put operations. Specifically, we now avoid unnecessary lineage hashing and comparisons by using lists instead of hash maps, move the time computations into the reuse path (to not affect the code path without lineage reuse), avoid unnecessary branching, and materialize the score of cache entries to avoid repeated computation for the log N comparisons per add/remove/constaints operation. For 100K iterations and ~40 ops per iteration, lineage tracing w/ reuse improved from 41.9s to 38.8s (pure lineage tracing: 27.9s).
- Loading branch information
Showing
5 changed files
with
50 additions
and
43 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
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