Page 1 of 1

Use multithread in the XnView explorer

Posted: Sun Nov 06, 2016 12:05 am
by Vinvin2020
When there's hundreds of images to display, that could take a couple of minutes.
By using MT that could divided the time by 3 to 10.

Description : A new thread for each image. The max number of simultaneous threads is limited to the number of logical processor (+ 1 option to set a user value).

Re: Use multithread in the XnView explorer

Posted: Mon Nov 07, 2016 7:35 pm
by masterjp
Your idea is good, but your ssd/harddisk do not like it.

I tried this with two instances of xnview mp and browse different directories on one harddisk.
The reading head of your harddisk will jump from one position to another and your harddisk get loud.
It is not good for your harddisk.

Re: Use multithread in the XnView explorer

Posted: Sun Jan 08, 2017 4:37 pm
by Vinvin2020
masterjp wrote:Your idea is good, but your ssd/harddisk do not like it.

I tried this with two instances of xnview mp and browse different directories on one harddisk.
The reading head of your harddisk will jump from one position to another and your harddisk get loud.
It is not good for your harddisk.
Are you sure about this ?
harddisk : may be ... but SSDs not at all because they have very fast access time.

Re: Use multithread in the XnView explorer

Posted: Thu Jan 26, 2017 9:32 am
by m.Th.
Vinvin2020 wrote:
masterjp wrote:Your idea is good, but your ssd/harddisk do not like it.

I tried this with two instances of xnview mp and browse different directories on one harddisk.
The reading head of your harddisk will jump from one position to another and your harddisk get loud.
It is not good for your harddisk.
Are you sure about this ?
harddisk : may be ... but SSDs not at all because they have very fast access time.
Corel ASP - the gold standard for speed in this area sez:
- HDD one I/O thread
- SSD 4 (four) I/O threads

...as a rule of thumb. Tune up carefully if you see performance degradation.

Re: Use multithread in the XnView explorer

Posted: Thu Jan 26, 2017 9:38 am
by m.Th.
Vinvin2020 wrote:When there's hundreds of images to display, that could take a couple of minutes.
By using MT that could divided the time by 3 to 10.

Description : A new thread for each image. The max number of simultaneous threads is limited to the number of logical processor (+ 1 option to set a user value).
1. Put your DB on a separate, free SSD

Using Tools | Settings | Catalog...

2. Change your thumbnail format to WebP
3. Optimize the size of your thumbnails (do not make it bigger than it needs to be)
4. Memory usage for DB engine - at least 100 MB

It isn't needed to wait till background thread finishes. If you scroll, the thread will adapt and build the thumbs where you are. What do you want to do? What file format do you have? How big are the files?