Avoid branching in convertBlackAndWhiteToRGBA#20638
Avoid branching in convertBlackAndWhiteToRGBA#20638calixteman merged 1 commit intomozilla:masterfrom
Conversation
The function is now almost 8x faster than before. And make the code in the file slightly more readable.
1a2ca1b to
a9870ad
Compare
|
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/cc368382cf23509/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/82c7bed4e68d2f5/output.txt |
timvandermeij
left a comment
There was a problem hiding this comment.
r=me, with passing tests. Nice work!
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/cc368382cf23509/output.txt Total script time: 42.07 mins
Image differences available at: http://54.241.84.105:8877/cc368382cf23509/reftest-analyzer.html#web=eq.log |
|
Our js jbig2 decoder is buggy with this file. |
|
Given that the original rendering using the JS decoder was also incorrect, I don't really mind that this patch changes only this particular file (and none of the others) to a "different kind of incorrect" so to say, mostly because the WASM decoder handles it well and we try to use that as the default where possible anyway. |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/82c7bed4e68d2f5/output.txt Total script time: 83.99 mins
Image differences available at: http://54.193.163.58:8877/82c7bed4e68d2f5/reftest-analyzer.html#web=eq.log |
At the risk of asking stupid questions: Can the PDF.js JBIG2 decoder be replaced with a fallback JS one based on the PDFium decoder? |
No it isn't a stupid question. |
|
/botio makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 2 Live output at: http://54.193.163.58:8877/7cdcce40dcee3e8/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/36fade69c44c3c8/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/36fade69c44c3c8/output.txt Total script time: 18.61 mins
|
The function is now almost 8x faster than before.
And make the code in the file slightly more readable.