Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(server): use exiftool for file date metadata #16453

Open
wants to merge 3 commits into
base: refactor/server-metadata-extraction-group-async-calls
Choose a base branch
from

Conversation

mertalev
Copy link
Contributor

@mertalev mertalev commented Mar 1, 2025

Description

There are two redundant stat calls in metadata extraction that can instead use the exiftool output (tags starting with File are from the file system). Besides generally less file IO, it avoids taking up a thread (or waiting to acquire one) in the all-too-limited libuv threadpool. Based on #16450, which should be merged first.

I tested locally and it works as expected. However, there are cases in the library E2E tests where the tags are undefined. I don't know why this is. The PR falls back to calling .stat in this case to handle this.

This is the last of the PRs split off from #14277.

@mertalev mertalev force-pushed the refactor/server-remove-metadata-extraction-stat-calls branch from b3615aa to f394c7d Compare March 1, 2025 11:54
@mertalev mertalev force-pushed the refactor/server-remove-metadata-extraction-stat-calls branch from ba670be to 0f8e67f Compare March 1, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant