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

Alternative prev_click_rank() and get_last_click_rank() implementation. #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

skip-th
Copy link

@skip-th skip-th commented Nov 21, 2022

Reimplemented get_last_click_rank() and prev_click_rank(). In get_last_click_rank(), iterate backward through the search results, which allows you to stop early if the last click was not on the first search result. In prev_click_rank(), replaced the double loop with a single loop over all search results.

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

Successfully merging this pull request may close these issues.

1 participant