aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/java
diff options
context:
space:
mode:
authorGravatar Jakob Buchgraber <buchgr@google.com>2017-10-30 09:00:29 -0400
committerGravatar John Cater <jcater@google.com>2017-10-30 10:42:13 -0400
commit04f2b03d351d3de16601dff2290f40643f2cb16e (patch)
treee565de175e3d2fc2ad47ba7743dedd8f7668284d /third_party/java
parentab8e513ed537c67f6032911cb6e089c10f46def1 (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