diff options
author | Jakob Buchgraber <buchgr@google.com> | 2017-10-30 09:00:29 -0400 |
---|---|---|
committer | John Cater <jcater@google.com> | 2017-10-30 10:42:13 -0400 |
commit | 04f2b03d351d3de16601dff2290f40643f2cb16e (patch) | |
tree | e565de175e3d2fc2ad47ba7743dedd8f7668284d /third_party/java | |
parent | ab8e513ed537c67f6032911cb6e089c10f46def1 (diff) |
Reduce iterations and copies over inputs in ActionSpawn.
The current implementation copies all inputs into a list and then
iterates over them twice to remove filesets and manifests. We can
do the filtering in one pass instead and avoid the copying to a
list to save memory.
In addition, the Action.getInputs() method often returns inputs
stored in a NestedSet and we want to allow a caller to have
access to it, so that he isn't forced to flatten it. A call can
do that by checking if ActionSpawn.getInputFiles() is an instance
of NestedSetView.
Change-Id: I2fa8904827030c04bf29b14f0f3f942877c317a4
PiperOrigin-RevId: 173881256
Diffstat (limited to 'third_party/java')
0 files changed, 0 insertions, 0 deletions