Large pause when deleting images in Viewer!

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
Criftus
Posts: 11
Joined: Wed Feb 02, 2005 11:40 pm

Large pause when deleting images in Viewer!

Post by Criftus »

Whenever I delete an image in XnView's Viewer, there is a large pause afterwards. I do not get this effect when deleting in the Browser. I think it's the thumbnail cache being updated, or the displayed thumbnails in the browser being updated as each file is being deleted. It doesn't really matter whether or not I have thumbnail caching enabled or not, or read ahead, or keeping the image in memory. The gap is very large, and makes seamless browsing/deleting of files difficult.

The directory I'm using contains 1000+ images, but that shouldn't really be an issue. The thumbnail cache shouldn't have to be updated with every deletion or renaming, only the file in question should be edited/removed, right?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Large pause when deleting images in Viewer!

Post by xnview »

Criftus wrote:Whenever I delete an image in XnView's Viewer, there is a large pause afterwards. I do not get this effect when deleting in the Browser. I think it's the thumbnail cache being updated, or the displayed thumbnails in the browser being updated as each file is being deleted. It doesn't really matter whether or not I have thumbnail caching enabled or not, or read ahead, or keeping the image in memory. The gap is very large, and makes seamless browsing/deleting of files difficult.

The directory I'm using contains 1000+ images, but that shouldn't really be an issue. The thumbnail cache shouldn't have to be updated with every deletion or renaming, only the file in question should be edited/removed, right?
Do you have this effect if you close the browser? Whihc sort method do you have in browser?
Pierre.
Criftus
Posts: 11
Joined: Wed Feb 02, 2005 11:40 pm

Post by Criftus »

If the browser is closed, no, I don't get this problem. But so long as both the browser and the viewer are open, the pause exists. If I knew how to eliminate the tabs feature and be able to switch between the viewer & browser without having them open up separate windows for each, I guess I'd be okay. =P

The sort method I'm using is "Name (Numeric)".

Operating System: Windows XP Professional SP2
Processes: 18 Active
Motherboard: ASUS P4C800-E Deluxe
Processor: Intel P4 3.0 Ghz (Prescott Core)
RAM: 1024 MB
Hard Drive: Maxtor 80 GB & 120 GB @7200 RPM (%25+ free each)
Graphics Card: ATI RADEON 9800 PRO (128 MB Version)
Sound Card: Creative Soundblaster Audigy ZX2
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Test here---

Post by Clo »

:arrow: Criftus

:) Hello !

- I tested to delete (definitely Shift+Del) a 1.5 MB JPG :
- In “View”, browser closed —> 0.3 second (approx.)
- In “View", browser open —> 1.5 second (delay to see the next image of the folder, 'cause this option is set @home).
- But in a test-dir. with only some pics…
- The Cache is enabled…
…The directory I'm using contains 1000+ images, but that shouldn't really be an issue. …
- Hum… IMHO, maybe smaller folders could improve the XnView running? Personally I would split such a big folder into several smaller sub-dirs. …
- XnView is certainly an excellent program, but it's not the Miracle-Cave Image

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Criftus
Posts: 11
Joined: Wed Feb 02, 2005 11:40 pm

Re: Test here---

Post by Criftus »

Clo wrote: :) Hello !
Salut! :wink:
Clo wrote: - Hum… IMHO, maybe smaller folders could improve the XnView running? Personally I would split such a big folder into several smaller sub-dirs. …
Eventually that's exactly what I'd like to do! =) I'm going through the images and deleting the ones that I don't need. The folder is my "dumping ground" for images I haven't had time to sort.

I don't think the amount of images in the folder is the issue though. Yes, when both browser & viewer are open, there are more processes at work than when only one is open, but why does it slow by 5x (with your test) when both are running?
Clo wrote: - XnView is certainly an excellent program, but it's not the Miracle-Cave Image
I couldn't agree more! XnView is without a doubt the best image viewer I've tried. With a little more work though, maybe it could become this Miracle-Cave? :D

Oh yes. Is there any way to only have one tab open at a time? Or is there a way to disable this tab feature? I don't use it, and without it my original problem would disappear. :)

Thank you all for your time!
Criftus
User avatar
Clo
XnThusiast
Posts: 4441
Joined: Sun Oct 17, 2004 4:57 am
Location: Bordeaux, France
Contact:

Option that helps?

Post by Clo »

:) Bonjour !

• Currently, there is no way to disable the tabs, but I don't think it's an annoyance : in fact, even whether the tabs would be disabled, you would have still the multi-window feature "On"…
- You can hide the tabs in the View menu, but that doesn't disable the multi-window function…
- You could attempt to tick the box >> Options >> View [x] Only one view opened
- Then, if you try : Window menu >> Tile (H or V) you will see that only one picture has a window in “View” at the same time; however, the Browser-window is shown as tiled too ! :P
- To display the tabs (no more than two in this case) doesn't change anything about the delay… I use the tabs in XnView, I guess they are handy since simple, while I don't use them i.e. in Total Commander (too much twisted !)
…but why does it slow by 5x…
- In fact, there is also the time to load / display the next image when one is deleted, this option is set @ home, but obviously you don't need it for the job you are doing… The "normal" ratio (without that option) might be let's say, 4 or so. Too long, most certainly…

• Just an idea : when deleting a lot of pics that you have to select in the browser, an option to postpone the refreshing of the current folder / cache… etc. could help, for instance when closing XnView, or from time to time with a special command in a menu… A request to post :D

:mrgreen: Kind regards,
Claude
Clo
Old user ON SELECTIVE STRIKE till further notice
Post Reply