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

In getVisibleElements, check firstVisibleElementInd rather than numViews before backtracking (PR 10443 follow-up) #10501

Conversation

Snuffleupagus
Copy link
Collaborator

When firstVisibleElementInd === 0, regardless of the number of views, there's no reason to attempt to backtrack at all since it's never possible to find an element before the first one anyway.

…numViews` before backtracking (PR 10443 follow-up)

When `firstVisibleElementInd === 0`, regardless of the number of views, there's no reason to attempt to backtrack at all since it's never possible to find an element before the *first* one anyway.
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.67.70.0:8877/82aef113fd1b7ff/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/82aef113fd1b7ff/output.txt

Total script time: 1.68 mins

Published

@timvandermeij timvandermeij merged commit d03d990 into mozilla:master Jan 27, 2019
@timvandermeij
Copy link
Contributor

Makes sense. Thanks!

@Snuffleupagus Snuffleupagus deleted the getVisibleElements-avoid-unnecessary-backtrack branch January 27, 2019 15:54
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