Use an Array When Computing Primary Inputs
Use an Array When Computing Primary Inputs

Unfortunately, (Typed)VirtualPath's Hashable conformance is wildly expensive to the point that constructing and searching a hashed collection is much more expensive than a linear scan. Preliminary tests show a factor of 4 improvement by switching to a linear scan for large workloads.

apple/swift-driver,apple/swift-driver,apple/swift-driver,apple/swift-driver