Repository navigation
v.0.0.8
Key optimizations made:
Instead of checking each image against every markdown file individually (which was O(n²)), we now:
First build a Set of all referenced images across all markdown files (O(n))
Then check each image file against this Set (O(1) lookup)
Separated the image file filtering logic into its own method for better organization
Removed the unnecessary isImageReferenced method since we now use the Set-based approach
These changes should make the command significantly faster, especially for vaults with many files. The time complexity has been reduced from O(n²) to O(n), where n is the number of files in the vault.