Skip to content

Replace random_access with sequenced in vote_cache#3955

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/beta-fix/sequenced-vote-cache
Sep 22, 2022
Merged

Replace random_access with sequenced in vote_cache#3955
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/beta-fix/sequenced-vote-cache

Conversation

@pwojcikdev
Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants