Slow starting and quitting (1.70.2 and above)

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

helmut wrote:Just stumbled over this problem again, and want to bring it back on the table:
I've put XnView on a USB memory stick and started it directly from the USB stick. Starting XnView takes some seconds which is o.k., but when exiting XnView takes about 2.5 minutes (!). In the Windows task manager the process XnView can be seen and the LED of the USB stick keeps blinking during the whole time, it's XnView saving the .ini file that causes this.
Very strange. How many bytes have your xnview.ini?
Then I've checked the setting "Use regisry to save options" in Options > Install, then the problem dissappeared, XnView exited immediately.
Please note that the memory stick is used at an USB version 1.0 port, which is slow when writing single files. Also, McAfee VirusScan 7.0 is active.
Even if it's a problem of Windows or the antivirus program, I think something should be done about this. As a quick solution, settings could be saved in Windows registry rather than the .ini file.
Many users do not want to use registry.
Perhaps a question after the first startup???
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

xnview wrote:Very strange. How many bytes have your xnview.ini?
It's 7 Kb - not an unusual size I think.
xnview wrote:Many users do not want to use registry.
Perhaps a question after the first startup???
I also prefer the .ini files and think this should remain the standard. So we should really solve this problem. Perhaps you can provide me a special debug version that allows you to find out which function / API calls need all the time.
Dreamer
XnThusiast
Posts: 4608
Joined: Sun Jul 25, 2004 9:08 pm

Post by Dreamer »

I like ini files too, but I think using of registry and adding a feature "Export options to *.reg file" could solve this problem easier, especially if xnview is always(?) slower with an ini file.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Dreamer wrote:I like ini files too, but I think using of registry and adding a feature "Export options to *.reg file" could solve this problem easier, especially if xnview is always(?) slower with an ini file.
Rather than building (more or less) workarounds for exporting the registry settings more easily, I'd like to see the saving of .ini files fixed.
Pierre now could successfully reproduce the "Slow saving" problem and I think in version 1.76 this will be fixed.
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

helmut wrote:
Dreamer wrote:I like ini files too, but I think using of registry and adding a feature "Export options to *.reg file" could solve this problem easier, especially if xnview is always(?) slower with an ini file.
Rather than building (more or less) workarounds for exporting the registry settings more easily, I'd like to see the saving of .ini files fixed.
Pierre now could successfully reproduce the "Slow saving" problem and I think in version 1.76 this will be fixed.
Sorry if this moves a little off track but what happened to XnView v1.75?
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

ckit wrote:Sorry if this moves a little off track but what happened to XnView v1.75?
FAIK, XnView 1.75 is an non-official release for a specific customer. So next public/official release is 1.76 (or higher).
Wen

slow on exit when access over a network

Post by Wen »

I am using 1.80.1. I have tried several versions, they all have this problem.

I tried the things mentioned in the thread: use windows registry and disable virus scan. They did not help on my system.

I find:
1. exiting from viewing a file on my local hd takes less than 1 sec.
2. exiting from viewing a network shared file takes more than 15 secs.

For 2 the time varies. I can see xnview takes about 2-3% of the CPU. The network usage goes way up. It seems it is reading the entire tree from root. By root I mean, windows desktop, expands my computer, (list all my drives), my network places. It expands all the computers on the network. I verified the exit time is about the same time to refresh the browser tree.

I suspect it reads the reads or update the browser tree. When exiting the app, I do not see a need for this. I tried a few options but none helped.

BTW, do you provide source for Xnview?
Wen

Re: slow on exit when access over a network

Post by Wen »

Another thing I tried is when I first enter browser view first, let it finish update the tree, then exit takes less than 1 sec.
Post Reply