JXL: multithreaded decoding

Ideas for improvements and requests for new features in XnView MP

Moderators: helmut, XnTriq, xnview

Post Reply
Yumi
Posts: 2
Joined: Tue Mar 06, 2012 8:45 am

JXL: multithreaded decoding

Post by Yumi »

I've noticed that decoding large JPEG-XL images is very slow - much slower than what djxl can do. From what I can tell, XnView MP's implementation doesn't enable multi-threading. There's an example here of how to decode - from what I can tell, the main thing is that JxlDecoderSetParallelRunner needs to be called, with an appropriate threading runner, so hopefully not too difficult. (I don't know whether you want to keep the thread pool around, but even just re-creating/destroying it for each image should still usually give better performance)

I see a thread suggesting multithreaded encode - so if that's happening, may as well do it for decode too :)

Thanks!
Kadet
Posts: 208
Joined: Thu Oct 20, 2022 7:23 pm

Re: JXL: multithreaded decoding

Post by Kadet »

+1 👍
nji9
Posts: 131
Joined: Wed May 13, 2020 10:33 am

Re: JXL: multithreaded decoding

Post by nji9 »

+1 👍
revadiaz
Posts: 11
Joined: Sat Feb 04, 2017 12:10 am

Re: JXL: multithreaded decoding

Post by revadiaz »

+1. Really need this.
Opening jxl file with 6000x4000 resolution take a long time (>2 seconds).
corr
Posts: 136
Joined: Tue Jun 13, 2017 8:00 am

Re: JXL: multithreaded decoding

Post by corr »

+1 👍
Post Reply