check symlink before reading file

This is faster because when multiple files are in a directory, it gets
cached.
This commit is contained in:
Joey Hess 2021-06-14 11:53:51 -04:00
parent 4163344ed6
commit c4f1465a81
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 13 additions and 8 deletions

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="joey"
subject="""comment 25"""
date="2021-06-14T15:52:37Z"
content="""
Found an optimisation that sped it up 50%, but this edge case is still
`O(N^2)`, so *shrug*.
"""]]