forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[engine] no longer content address subject
TL;DR: no longer CA subject, CA nodes but will be smart about it in the next review. Still part of [1], at present we CA 100%, subject is sth we can save, because the only way for a task to view a subject is by `Select`ing it and in that case it will be CA-ed as `Return(subject)`. While we remove subject from CA, because [2] we would have to either make all subjects orderable (certainly a big restriction and not preferred) or CA the node itself. This review does the latter. The next review will make CA nodes (as well as other things) only happen when they are for caching or for multi-process. Other changes included: * Overwrite default `AddressMapper.__repr__`, so when it is subject, in debug mode, it doesn't have machine address, that results cache misses. * `Node` is content address-ed in `Scheduler`, which might be questionable. Previous thinking is to have scheduler stay out of CA business, this can still be achived by having an additional conversion in Engine, we can revisit if there is such a need. * No more special handling of cyclic `Noop`, previousely due to scheduler introduces a `State` but it doesn't do CA now it does [1] Content address performance pantsbuild#3066 [2] Randomness as in https://rbcommons.com/s/twitter/r/3593/ Testing Done: https://travis-ci.org/peiyuwang/pants/builds/118313227 Bugs closed: 3066, 3090 Reviewed at https://rbcommons.com/s/twitter/r/3604/
- Loading branch information
Showing
15 changed files
with
136 additions
and
139 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
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
Oops, something went wrong.