FilterLineReachabilityAnswer: parallelize
In large networks, the gains from parallelism are likely much larger
than the gains from BDD Reuse.
@@ -452,10 +452,10 @@ public class FilterLineReachabilityAnswerer extends Answerer {
private static Stream<UnreachableFilterLine> computeUnreachableFilterLines(
List<AclSpecs> aclSpecs) {
- BDDPacket bddPacket = new BDDPacket();
- return aclSpecs.stream()
+ return aclSpecs.parallelStream()
.flatMap(
aclSpec ->
- FilterLineReachabilityUtils.computeUnreachableFilterLines(aclSpec, bddPacket));
+ FilterLineReachabilityUtils.computeUnreachableFilterLines(
+ aclSpec, new BDDPacket()));
}
}
