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

Optimize adaptive search distance performance #473

Open
duogenesis opened this issue Aug 27, 2024 · 0 comments
Open

Optimize adaptive search distance performance #473

duogenesis opened this issue Aug 27, 2024 · 0 comments

Comments

@duogenesis
Copy link
Member

The search distance is set by searching the onboardee's location a few times. This is slow and prevents some users from completing onboarding.

One way to optimize performance is to pre-compute the nearby population of active users for each major city. This population data can also be used to rank location search results when signing up. The drawback is that this doesn't take into consideration age and gender-related two-way filters. Though we can probably construct an approximation by combining crude population data with more general statistics about the proportion of Duolicious users of each gender and in each age bracket.

The adaptive search distance can also be optimized by performing a one or two search queries to check the population in a fixed-size radius, then plugging those results into a formula which approximates the optimal search distance.

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

No branches or pull requests

1 participant