mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-25 17:00:36 -09:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user