Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid slow Files#isDirectory call in testFilter (#63)
On ZIP file systems, `Files.isDirectory` ends up being very slow if the path does not exist (similarly to `Files.exists`, which is worked around in UnionFS). We can take advantage of the existing workaround by using our `getFileAttributes` method instead, which attempts to check if the file exists using much more efficient logic. See the profiler screenshot below for an example of the problem. ![zfas_neo](https://github.com/McModLauncher/securejarhandler/assets/42941056/f4001d99-a657-499d-8218-25e5ded84c4d)
- Loading branch information