Skip to content

Replace random_access with sequenced in active_transactions#3957

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/beta-fix/sequenced-active-transactions
Sep 26, 2022
Merged

Replace random_access with sequenced in active_transactions#3957
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/beta-fix/sequenced-active-transactions

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)

@pwojcikdev pwojcikdev merged commit dbbab91 into nanocurrency:develop Sep 26, 2022
@pwojcikdev pwojcikdev deleted the prs/beta-fix/sequenced-active-transactions branch September 26, 2022 15:07
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