Don't recompute feature names as this wastes time and creates garbage.
RELNOTES: None.
@@ -1695,11 +1695,7 @@ public class CcToolchainFeatures implements Serializable {
@VisibleForTesting
Collection<String> getActivatableNames() {
- Collection<String> featureNames = new HashSet<>();
- for (CrosstoolSelectable selectable : selectables) {
- featureNames.add(selectable.getName());
- }
- return featureNames;
+ return selectablesByName.keySet();
}
/**
