Opened 9 years ago
Last modified 6 years ago
#12205 assigned bug
[ShowImage] takes too long to open an image
Reported by: | diver | Owned by: | leavengood |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Applications/ShowImage | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
Mounted an NTFS partition (in read only mode) which has ~500 files of various file types. Double clicking some JPEG images takes about 8 seconds to open in ShowImage. During that time I can hear HDD seeking/reading noise. Probably ShowImage is trying to read the directory where this file is for caching.
Interestingly, opening the same image from Terminal using "ShowImage /path/to/image.jpg" takes 5 seconds. So there's some kind of a difference here about how the file is being opened.
Some other JPEG files in the same folder open within 3 seconds (using double click) in ShowImage.
It takes only 1 second to open the same file in QupZilla/WebPositive.
Opening it in DiskProbe is instant.
Change History (9)
comment:1 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
comment:3 by , 9 years ago
The difference in loading time between opening an image in Tracker and in Terminal is explainable by the fact that the lists of files are sorted differently. So the preload images are different.
comment:4 by , 9 years ago
I tried to copy that image to the desktop and the time top open it went down to 3 seconds. I did my tests when I had Haiku booted off USB.
Weirdly enough, now that I've installed Haiku on a HDD partition opening original file from NTFS partition takes only 1 second (which is still too long for a small image) and I can't hear any noise...
comment:5 by , 9 years ago
One reason for this to take long is that Haiku will throw all translator on the file it has. After that, it will choose the best one from all that reported support.
You don't have to start Haiku from USB to make it slow, it will also be very slow when opening the files from a USB stick (which is probably more common).
In any case, I agree that it's too slow; this is just where one could start looking to improve things :-)
comment:6 by , 9 years ago
I tried to had the hintMime to the Identify function (IconCache and Navigator), but the improvement is minimal.
comment:7 by , 9 years ago
Now that I've tested it some more it seems that any FS operation takes much longer and tend to hang for a while when Haiku is booted off this USB. While it works just fine from HDD. Any ideas?
comment:8 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:9 by , 6 years ago
Owner: | changed from | to
---|
I will look at this when I start working on ShowImage bugs.
Hi diver, I think this is a dup of #11968. Can you try to move an image in an empty folder and see if it is fast enough?