Skip to content
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

Avoid dispatching range requests to fetch PDF data that's already loaded with streaming (PR 10675 follow-up) #10694

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented Mar 28, 2019

Please note: This patch purposely ignores src/display/network.js, since its support for progressive reading depends on the non-standard moz-chunked-arraybuffer responseType which is now in the process of being removed.

/cc @yurydelendik

Edit: Note that PR #10675 must land first, since otherwise you'd risk breaking the PDF Viewer in Firefox.

@Snuffleupagus Snuffleupagus force-pushed the main-thread-progressiveDataLength branch from 1ae1d34 to a986ea6 Compare March 28, 2019 17:10
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/dcefecc4684b5af/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/8b3bf300428b7e3/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/dcefecc4684b5af/output.txt

Total script time: 18.18 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/8b3bf300428b7e3/output.txt

Total script time: 25.52 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/8b3bf300428b7e3/reftest-analyzer.html#web=eq.log

@Snuffleupagus
Copy link
Collaborator Author

/botio-windows test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/bcb347e2388ddcc/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://54.215.176.217:8877/bcb347e2388ddcc/output.txt

Total script time: 25.49 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@Snuffleupagus
Copy link
Collaborator Author

This is currently blocked on a definitive answer to the discussion starting at #10696 (comment), since if the current code is wrong (which I really don't hope) then this PR would likely require adjustments as well.

@Snuffleupagus
Copy link
Collaborator Author

@yurydelendik Ping; any chance that you have time to review this, and provide an answer to #10694 (comment) as well?

Copy link
Contributor

@yurydelendik yurydelendik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks reasonable. Thank you for the patch.

src/display/api.js Outdated Show resolved Hide resolved
…ded with streaming (PR 10675 follow-up)

*Please note:* This patch purposely ignores `src/display/network.js`, since its support for progressive reading depends on the non-standard `moz-chunked-arraybuffer` responseType which is currently in the process of being removed.
@Snuffleupagus Snuffleupagus force-pushed the main-thread-progressiveDataLength branch from 027195e to a7273c8 Compare April 12, 2019 22:26
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/13e3a12445c0670/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.215.176.217:8877/2afe0edc2d41c1f/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/13e3a12445c0670/output.txt

Total script time: 17.79 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Windows)


Failed

Full output at http://54.215.176.217:8877/2afe0edc2d41c1f/output.txt

Total script time: 25.24 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: FAILED

Image differences available at: http://54.215.176.217:8877/2afe0edc2d41c1f/reftest-analyzer.html#web=eq.log

@timvandermeij timvandermeij merged commit 17de90b into mozilla:master Apr 13, 2019
@timvandermeij
Copy link
Contributor

Nice work!

@Snuffleupagus Snuffleupagus deleted the main-thread-progressiveDataLength branch April 13, 2019 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants