Opened 4 years ago

Last modified 7 weeks 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:
Has a Patch: no Platform: All

Description (last modified by diver)


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 Changed 4 years ago by diver

Description: modified (diff)

comment:2 Changed 4 years ago by Janus

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?

comment:3 Changed 4 years ago by Janus

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 Changed 4 years ago by diver

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 Changed 4 years ago by axeld

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 Changed 4 years ago by Janus

I tried to pass the hintMime to the Identify function (IconCache and Navigator), but the improvement is minimal.

Last edited 4 years ago by Janus (previous) (diff)

comment:7 Changed 4 years ago by diver

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 Changed 2 years ago by axeld

Owner: changed from axeld to nobody
Status: newassigned

comment:9 Changed 7 weeks ago by leavengood

Owner: changed from nobody to leavengood

I will look at this when I start working on ShowImage bugs.

Note: See TracTickets for help on using tickets.