Use multithread in the XnView explorer

Ideas for improvements and requests for new features in XnView MP

Moderators: XnTriq, xnview

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

Use multithread in the XnView explorer

Post by Vinvin2020 » Sun Nov 06, 2016 12:05 am

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: 150
Joined: Fri Feb 13, 2009 4:37 pm
Location: Duesseldorf (Germany)

Re: Use multithread in the XnView explorer

Post by masterjp » Mon Nov 07, 2016 7:35 pm

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
OS: Windows 10 Pro x64 | XN-View 2.49 | XN-View MP 0.93.1 + 0.94 beta #1 | XnConvert 1.80 | Adobe Photoshop Elements 2019 & Elements XXL 6

Vinvin2020
Posts: 9
Joined: Thu Feb 04, 2016 3:40 pm

Re: Use multithread in the XnView explorer

Post by Vinvin2020 » Sun Jan 08, 2017 4:37 pm

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: 1556
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Use multithread in the XnView explorer

Post by m.Th. » Thu Jan 26, 2017 9:32 am

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.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

User avatar
m.Th.
XnThusiast
Posts: 1556
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Use multithread in the XnView explorer

Post by m.Th. » Thu Jan 26, 2017 9:38 am

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.

The Ascetic Experience - The best photos and texts from Holy Mountain (Athos)

- Dark Themed XnViewMP 0.90 64bit & XnView 2.00 x64 on Win7 x64 -

Post Reply