Use multithread in the XnView explorer

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
Vinvin2020
Posts: 12
Joined: Thu Feb 04, 2016 3:40 pm

Use multithread in the XnView explorer

Post 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).
User avatar
masterjp
Posts: 471
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf, Germany

Re: Use multithread in the XnView explorer

Post 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.
PC: Intel 8700k + Asus Z370-F + 16 GB RAM G.Skill + Asus RTX 3050 OC + Samsung SSD
OS: Windows 10 Pro 64bit 22H2 |
GFX: XnViewMP 1.8.7 | XN-View 2.52.0 | XnConvert 1.104.0 | Adobe Photoshop Elements 2024 | Elements XXL 11 | Paint.Net 5.1.7
Vinvin2020
Posts: 12
Joined: Thu Feb 04, 2016 3:40 pm

Re: Use multithread in the XnView explorer

Post 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.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Use multithread in the XnView explorer

Post 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.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Use multithread in the XnView explorer

Post 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?
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Post Reply