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

stream: don't try to read from all-sparse/no-data files #13817

Merged
merged 1 commit into from
May 7, 2024

Commits on May 7, 2024

  1. stream: don't try to read from all-sparse/no-data files

     ```
     dd if=/dev/zero of=/tmp/10g.empty bs=1 seek=10G count=0
     dd if=/dev/zero of=/tmp/10m.empty bs=1 seek=10M count=0
     time mpv /tmp/10{g,m}.empty
     ```
    
     I keep files with the name format `${name}-${hash}.${ext}.empty`
     around, where the original is removed, and a sparse file with
     the size of the original is created instead.
    
     A lot of time is wasted on such files when going through
     playlists/directories that include some of them.
    
     This admittedly may not be that common of a use-case.
    
    Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
    MoSal committed May 7, 2024
    Configuration menu
    Copy the full SHA
    4904175 View commit details
    Browse the repository at this point in the history