GP-5208 improve library name lookups

Expose the nameComparator feature in Gfilesystems to allow
faster lookups of libraries (especially on windows where
isDirectory is 10x slower)
This commit is contained in:
dev747368
2024-12-27 10:37:35 -05:00
parent 7c4d91f568
commit 0b1398c5a8
14 changed files with 155 additions and 71 deletions

View File

@@ -16,6 +16,7 @@
package skeleton;
import java.io.IOException;
import java.util.Comparator;
import java.util.List;
import ghidra.app.util.bin.ByteProvider;
@@ -112,6 +113,11 @@ public class SkeletonFileSystem implements GFileSystem {
return fsih.lookup(path);
}
@Override
public GFile lookup(String path, Comparator<String> nameComp) throws IOException {
return fsih.lookup(null, path, nameComp);
}
@Override
public ByteProvider getByteProvider(GFile file, TaskMonitor monitor)
throws IOException, CancelledException {