Using 'file -b --mime-type' is too slow #2

Closed
opened 2020-12-12 00:37:17 +01:00 by fabs · 2 comments
Owner

We currently check what files are tagmove targets by checking each result of 'find -f' using 'file -b --mime-type'.

This is too slow because 'file' actually reads the header to determine mime type. A file extension based approach may be more appropriate after all.

We currently check what files are tagmove targets by checking each result of 'find -f' using 'file -b --mime-type'. This is too slow because 'file' actually reads the header to determine mime type. A file extension based approach may be more appropriate after all.
Author
Owner

This may not be true after all... the calls to ffprobe in read_tag likely cause the slowdown.

This may not be true after all... the calls to ffprobe in read_tag likely cause the slowdown.
Author
Owner

Should be a lot faster with 8875ddfa9d

Should be a lot faster with 8875ddfa9dabdb6421fadce42ea66f319b148f80
fabs closed this issue 2020-12-12 17:27:31 +01:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: fabs/music_tagmove#2
No description provided.