Skip to content

Slightly optimize spreadMode toggling with ScrollMode.PAGE set (PR 14112 follow-up) #14280

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

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

It shouldn't be necessary to iterate through all pages when using a non-default spreadMode, since we already know which page(s) should become visible.
This code is a left-over from the initial (local) implementation that resulted in PR #14112, however I forgot to clean-up some things such as e.g. this loop.

Also fixes an outdated comment, see PR #14204 which removed the mentioned data-structure.

@Snuffleupagus Snuffleupagus changed the title Slightly optimize spreadMode toggling with scrollMode.PAGE set (PR 14112 follow-up) Slightly optimize spreadMode toggling with ScrollMode.PAGE set (PR 14112 follow-up) Nov 16, 2021
…R 14112 follow-up)

It shouldn't be necessary to iterate through *all* pages when using a non-default `spreadMode`, since we already know which page(s) should become visible.
This code is a left-over from the initial (local) implementation that resulted in PR 14112, however I forgot to clean-up some things such as e.g. this loop.

Also fixes an outdated comment, see PR 14204 which removed the mentioned data-structure.
@Snuffleupagus Snuffleupagus force-pushed the scrollMode-PAGE-spread-loop branch from 1f2806f to 1214c05 Compare November 16, 2021 14:38
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/8079f063162c545/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/8079f063162c545/output.txt

Total script time: 4.34 mins

Published

@timvandermeij timvandermeij merged commit f90eebd into mozilla:master Nov 17, 2021
@timvandermeij
Copy link
Contributor

Thanks!

@Snuffleupagus Snuffleupagus deleted the scrollMode-PAGE-spread-loop branch November 18, 2021 11:16
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