Closed terranprog closed 1 year ago
I made a similar commit on git master, try now.
I updated to latest master and saw similar improvements in performance
Time to process 20 jxl files is 3189 Time to process 20 jxl files is 3086 Time to process 20 jxl files is 3163
Replace functional code with imperative code in MathHelper.min(int..) and MathHelper.max(...). Improves performance of image decoding by around 20%.
Some sample timings to decode 20 1000x1000 images Timings are in milliseconds
Original code Time to process 20 jxl files is 4004 Time to process 20 jxl files is 3919 Time to process 20 jxl files is 3882
Average: 3935
With this PR Time to process 20 jxl files is 3316 Time to process 20 jxl files is 3203 Time to process 20 jxl files is 3298
Average: 3272
Reduction = 17%