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

Do the AppOptions.get("printResolution") lookup once in web/app.js , when initializing PDFPrintServiceFactory-instances, rather than for every printed page #12174

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

There's really no point in repeating these lookups over and over, since the value should be constant for the duration of one print invocation anyway.

@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2020

From: Bot.io (Linux m4)


Received

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

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

@Snuffleupagus Snuffleupagus changed the title Do the AppOptions.get("printResolution") lookup once in web/app.js , when initializing PDFPrintServiceFactory-instances, rather then for every printed page Do the AppOptions.get("printResolution") lookup once in web/app.js , when initializing PDFPrintServiceFactory-instances, rather than for every printed page Aug 5, 2020
…`, when initializing `PDFPrintServiceFactory`-instances, rather than for every printed page

There's really no point in repeating these lookups over and over, since the value should be constant for the duration of one print invocation anyway.
@Snuffleupagus Snuffleupagus force-pushed the AppOptions-printResolution branch from d47a878 to 97d796e Compare August 5, 2020 11:34
@pdfjsbot
Copy link

pdfjsbot commented Aug 5, 2020

From: Bot.io (Linux m4)


Success

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

Total script time: 3.40 mins

Published

@timvandermeij timvandermeij merged commit a289eb8 into mozilla:master Aug 5, 2020
@timvandermeij
Copy link
Contributor

Looks good to me!

@Snuffleupagus Snuffleupagus deleted the AppOptions-printResolution branch August 5, 2020 20:50
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.

3 participants