Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace random_access with sequenced in vote_cache #3955

Merged

Conversation

pwojcikdev
Copy link
Contributor

The random_access index from boost::multi_index_container has deletion complexity of O(n) when deleting entries from the beginning. For our use case sequenced is much better fit, it's essentially a linked list with complexity of this operation of O(1). This seems to be the cause of recent beta network problems.

@pwojcikdev pwojcikdev merged commit 752fc07 into nanocurrency:develop Sep 22, 2022
@pwojcikdev pwojcikdev deleted the prs/beta-fix/sequenced-vote-cache branch September 22, 2022 20:13
clemahieu pushed a commit to clemahieu/nano-node that referenced this pull request Oct 1, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants