There's a small perf issue after the changes to r334205; the patch is intended to search all the executables in a kext bundle to discover variants, e.g.
/System/Library/Extensions/AppleUSB.kext
everything under the AppleUSB.kext subdir should be searched. But the patch used the FileSpec's GetDirectory method, so we ended up recursively searching all the kexts in the parent directory.
Functionally, these are equivalent - recursively searching from the parent dir will yield the same result because we require a binary's UUID match before we use it. But it has a high performance cost if we search from the wrong base directory.
rdar://problem/41227170