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

Pre-render *one* additional page when spreadModes are enabled #14096

Merged
merged 2 commits into from
Oct 2, 2021

Conversation

Snuffleupagus
Copy link
Collaborator

I've had this patch lying around locally for (at least) a year, and going through some old half-finished stuff figured that actually submitting it for review may be useful.

Please note that we (obviously) don't want to unconditionally pre-render more than one page all the time, since that could very easily lead to overall worse performance in some documents.[1]
However, when spreadModes are enabled it does make sense to attempt to pre-render both of the pages of the next/previous spread.


[1] Since it may cause pre-rendering to unnecessarily compete for parsing resources, on the worker-thread, with "regular" rendering.

Please note that we (obviously) don't want to unconditionally pre-render more than one page all the time, since that could very easily lead to overall worse performance in some documents.[1]
However, when spreadModes are enabled it does make sense to attempt to pre-render both of the pages of the next/previous spread.

---
[1] Since it may cause pre-rendering to unnecessarily compete for parsing resources, on the worker-thread, with "regular" rendering.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2021

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/b6de1b68c6d264a/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Oct 2, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/b6de1b68c6d264a/output.txt

Total script time: 4.34 mins

Published

@timvandermeij timvandermeij merged commit dedff3c into mozilla:master Oct 2, 2021
@timvandermeij
Copy link
Contributor

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants