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: Use index as an argument in HashSet::mark_with_sequence_number #952

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

vadorovsky
Copy link
Contributor

  • Using a value was a bad choice, because it caused mark_with_sequence_number to search for the element. In all cases, where we use that method, we usually have the index available.
  • Return the index in HashSet::insert, for easier testing.

* Using a value was a bad choice, because it caused
  `mark_with_sequence_number` to search for the element. In all cases,
  where we use that method, we usually have the index available.
* Return the index in `HashSet::insert`, for easier testing.
@vadorovsky vadorovsky requested a review from ananas-block as a code owner July 3, 2024 14:08
@vadorovsky vadorovsky merged commit a73ca51 into main Jul 3, 2024
13 checks passed
@vadorovsky vadorovsky deleted the vadorovsky/hash-set-opt-mark branch July 3, 2024 14:54
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.

2 participants