Skip to content

Avoid walking all entries to find latest#566

Draft
WhyNotHugo wants to merge 1 commit into
owntracks:masterfrom
WhyNotHugo:simpler-is_newer_than_last
Draft

Avoid walking all entries to find latest#566
WhyNotHugo wants to merge 1 commit into
owntracks:masterfrom
WhyNotHugo:simpler-is_newer_than_last

Conversation

@WhyNotHugo

Copy link
Copy Markdown
Contributor

Finding the latest entry walks though the whole directory tree seeking the exact matching entry. However, the filename of the entry that should match is predictable.

Instead of walking through all entries to find the latest matching one, open the exact expected file.

References: #565

@WhyNotHugo

Copy link
Copy Markdown
Contributor Author

Draft because this needs further testing, and I'd prefer to hear if I'm missing any edge cases here.

Finding the latest entry walks though the whole directory tree seeking
the exact matching entry. However, the filename of the entry that should
match is predictable.

Instead of walking through all entries to find the latest matching one,
open the exact expected file.

References: owntracks#565
@WhyNotHugo WhyNotHugo force-pushed the simpler-is_newer_than_last branch from b6f9200 to 8652f0b Compare May 12, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant