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

Revert timed block_uniquer cleanup and replace. #4336

Closed

Conversation

clemahieu
Copy link
Contributor

Rather than cleaning up on an interval, continue cleaning up items progressively but rather than selecting random hashes to attempt to clean up, iterate the next items following the item just inserted for attempted cleanup.

Rather than randomly selecting block hashes to clean up, try cleaning up items immediately following the one just inserted in to the container.
@pwojcikdev
Copy link
Contributor

This approach is strictly inferior to a properly implemented linear cleanup, in the ideal case you can make a cleanup that runs in constant amortized time.

@clemahieu clemahieu marked this pull request as draft November 8, 2023 12:57
@clemahieu clemahieu closed this Nov 8, 2023
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