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

perf: improve reservation lookup performance #30

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

Alkaar
Copy link
Owner

@Alkaar Alkaar commented Aug 19, 2022

Original code would search through the entire list of reservations for each requested reservation slot. This change stores the whole list inside a map for faster lookup.

  • Use a map for faster reservation lookup performance
  • Improved logging
  • Better short-circuiting on searching through the priority list of reservations

@Alkaar Alkaar self-assigned this Aug 19, 2022
@Alkaar Alkaar merged commit e7344a9 into master Aug 19, 2022
@Alkaar Alkaar deleted the perf/faster-reservation-lookup branch August 19, 2022 02:17
@github-actions
Copy link

🚀 PR was released in v1.0.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Sep 21, 2022
@Alkaar Alkaar added the perf A code change that improves performance label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf A code change that improves performance released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant