Page 1 of 1

JXL: multithreaded decoding

Posted: Sat Apr 01, 2023 9:53 am
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!

Re: JXL: multithreaded decoding

Posted: Sat Apr 01, 2023 10:17 pm
by Kadet
+1 👍

Re: JXL: multithreaded decoding

Posted: Sun Apr 02, 2023 11:06 am
by nji9
+1 👍

Re: JXL: multithreaded decoding

Posted: Thu Jun 01, 2023 12:57 am
by revadiaz
+1. Really need this.
Opening jxl file with 6000x4000 resolution take a long time (>2 seconds).

Re: JXL: multithreaded decoding

Posted: Wed Jun 07, 2023 7:06 am
by corr
+1 👍