-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
[api-minor] Add a new transferPdfData
option to allow transferring more data to the worker-thread (bug 1809164)
#15908
Conversation
811d3f0
to
c3b5209
Compare
c3b5209
to
54dad7a
Compare
takeOwnershipOfData
option to allow transferring more data to the worker-thread (bug 1809164)transferBinaryData
option to allow transferring more data to the worker-thread (bug 1809164)
3a25528
to
58ee701
Compare
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/899d98324e41b51/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/fd36afce3106dd0/output.txt |
58ee701
to
0926a01
Compare
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/899d98324e41b51/output.txt Total script time: 25.90 mins
Image differences available at: http://54.241.84.105:8877/899d98324e41b51/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/fd36afce3106dd0/output.txt Total script time: 32.31 mins
Image differences available at: http://54.193.163.58:8877/fd36afce3106dd0/reftest-analyzer.html#web=eq.log |
Hopefully this should work correctly, and there's now basic unit-tests for all the relevant code-paths. |
What about: pdf.js/src/display/transport_stream.js Line 66 in d6f63b5
|
There's somewhat similar code found in all of the Even if we only change the mentioned |
0926a01
to
b82d4ef
Compare
b82d4ef
to
f9790c8
Compare
In looking at: Anyway I'm fine to take the risk to break some corner cases: if something is broken it's an opportunity to improve and add some new tests so it isn't that bad :). Even the initial goal of the bug I filed was mainly to fix a memleak, I think it's not that bad to improve that stuff here: it could help to win few 0.01% of battery on mobile. |
…more data to the worker-thread (bug 1809164) Also, removes the `initialData`-parameter JSDocs for the `getDocument`-function given that this parameter has been completely unused since PR 8982 (over five years ago). Note that the `initialData`-parameter is, and always was, intended to be provided when initializing a `PDFDataRangeTransport`-instance.
f9790c8
to
bbe6290
Compare
transferBinaryData
option to allow transferring more data to the worker-thread (bug 1809164)transferPdfData
option to allow transferring more data to the worker-thread (bug 1809164)
From: Bot.io (Linux m4)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/34a66e107515721/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_unittest from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/98b7e48ea477de2/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/34a66e107515721/output.txt Total script time: 2.44 mins
|
From: Bot.io (Windows)SuccessFull output at http://54.193.163.58:8877/98b7e48ea477de2/output.txt Total script time: 7.02 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.
LGTM. Thank you.
For the data that's coming directly from the
For the data that's coming from the Maybe we can just try updating the relevant |
As far as I can tell, it'd be very strange to not have full ownership of the |
Also, removes the
initialData
-parameter JSDocs for thegetDocument
-function given that this parameter has been completely unused since PR #8982 (over five years ago). Note that theinitialData
-parameter is, and always was, intended to be provided when initializing aPDFDataRangeTransport
-instance.