-
Notifications
You must be signed in to change notification settings - Fork 158
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
Feh tries to read .tar.bz2 files and it takes a looooong time #477
Comments
feh relies on Imlib2 to load images. Imlib2 contains a bzip2 loader, allowing it to seamlessly load images which were compressed using bzip2. Unfortunately, it decompresses the entire file before checking its header for the appropriate magic bytes, leading to the issue you observe. There isn't much feh can do about this, sorry. Could you address this issue to the Imlib2 developers? |
Pretty sure it's not even checking magic bytes, only the file ending. I'm trying to get this patch in to fix this. |
Was merged, together with a fix for |
I'll try to apply the patch and test it. |
The above link (https://phab.enlightenment.org/D10398) doesn't work now ( |
@opennota that's hopefully a temporary problem; try fetching from https://git.enlightenment.org/legacy/imlib2.git, the last commit on |
Works like a charm, thank you! I'll close the issue. |
Summary: Decompressing should be the last step, otherwise files that can't even be loaded will take unnecessarily long only to be discarded immediately. This is in reference to [this issue for feh](derf/feh#477) complaining about long load times in case of accidentally trying to open a big .tar.bz2 archive. Test Plan: Ran on sample from aforementioned ticket, observed immediate response and no further ill effects. Reviewers: kwo Differential Revision: https://phab.enlightenment.org/D10398
Steps to reproduce:
feh .
and use space to cycle through all the images.It takes a long time to skip this
data.tar.bz2
file (why does feh even try to load it?)Something like this happens with
.mkv
files and probably others.The text was updated successfully, but these errors were encountered: