-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[api-major] Add openjpeg.wasm to pdf.js (bug 1935076) #19329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/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/d55fe890be8225c/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/1c20eabb2c7f37f/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/d55fe890be8225c/output.txt Total script time: 28.01 mins
Image differences available at: http://54.241.84.105:8877/d55fe890be8225c/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/1c20eabb2c7f37f/output.txt Total script time: 57.14 mins
Image differences available at: http://54.193.163.58:8877/1c20eabb2c7f37f/reftest-analyzer.html#web=eq.log |
9351e1f
to
b3384ad
Compare
b3384ad
to
b301217
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/896ca7c56152839/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/4474db775db14e7/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/896ca7c56152839/output.txt Total script time: 28.65 mins
Image differences available at: http://54.241.84.105:8877/896ca7c56152839/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/4474db775db14e7/output.txt Total script time: 58.79 mins
Image differences available at: http://54.193.163.58:8877/4474db775db14e7/reftest-analyzer.html#web=eq.log |
b301217
to
ee7658d
Compare
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/b258dc512563ad8/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/4bc93f37da6f530/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/4bc93f37da6f530/output.txt Total script time: 29.66 mins
|
b07771d
to
a5d0574
Compare
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/b258dc512563ad8/output.txt Total script time: 59.00 mins
|
A little while back you mentioned potentially replacing the JBIG2 decoder with a wasm-based one, is this still something that we might at one point want to do? (Or if we want to introduce any other wasm-code, e.g. for ICC profile support.) If so, it'd probably make sense to replace the |
Yep replacing the JBIG2 decoder with the pdfium one (afaik it's the only one with a license compatible with ours) is still something we'd like to do.
Yes I thought about that too but then I thought it could be done later when an other wasm file will be added. |
By doing this now we avoid breaking backwards compatibility at a later date, which definitely seems worthwhile to me! |
a5d0574
to
3e4f967
Compare
3e4f967
to
27191e0
Compare
/botio browsertest |
From: Bot.io (Linux m4)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/11ae6d45fb7379d/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_browsertest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/b946219caa1eb1b/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/11ae6d45fb7379d/output.txt Total script time: 16.73 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/b946219caa1eb1b/output.txt Total script time: 30.45 mins
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me, with the final comments addressed; thank you!
In order to fix bug 1935076, we'll have to add a pure js fallback in case wasm is disabled or simd isn't supported. Unfortunately, this fallback will take some space. So, the main goal of this patch is to reduce the overall size (by ~93k). As a side effect, it should make easier to use an other wasm file (which must export _jp2_decode, _malloc and _free).
27191e0
to
94b4b54
Compare
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/4e03ad187f48314/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/57ada2c899049e4/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/57ada2c899049e4/output.txt Total script time: 28.66 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/4e03ad187f48314/output.txt Total script time: 59.72 mins
|
/botio makeref |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/4ed2d15ffd73e15/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/834b381194d2cca/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/4ed2d15ffd73e15/output.txt Total script time: 16.66 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/834b381194d2cca/output.txt Total script time: 30.35 mins
|
In order to fix bug 1935076, we'll have to add a pure js fallback in case wasm is disabled or simd isn't supported. Unfortunately, this fallback will take some space.
So, the main goal of this patch is to reduce the overall size (by ~93k). As a side effect, it should make easier to use an other wasm file (which must export _jp2_decode, _malloc and _free).