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

Replace naive matching algorithm #12

Open
abstxn opened this issue Oct 23, 2024 · 0 comments
Open

Replace naive matching algorithm #12

abstxn opened this issue Oct 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@abstxn
Copy link

abstxn commented Oct 23, 2024

The current matching algorithm tries to pop the oldest 2 match requests from the respective topic queue, and treats that as a match. Some enhancements can be made as discussed:

  1. Not allowing for Easy and Hard difficulty match requests to be matched together
  2. Having a priority queue that assigns priority as a function of request timestamp and difficulty
  3. Popping multiple matches on each pass of the algorithm instead of just one at a time
@abstxn abstxn added the enhancement New feature or request label Oct 23, 2024
@abstxn abstxn self-assigned this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant