In #334 we introduced PortRange, which gives us guarantees around the type. However, there's still room to improve how we store and search these PortRanges. We could have a container that enforces and makes use of these properties (e.g non-overlapping ranges) for storing and retrieving these entries. We should definitely look at implementations such as RangeSet/RangeMap.
In #334 we introduced
PortRange, which gives us guarantees around the type. However, there's still room to improve how we store and search thesePortRanges. We could have a container that enforces and makes use of these properties (e.g non-overlapping ranges) for storing and retrieving these entries. We should definitely look at implementations such asRangeSet/RangeMap.