Skip to content

Replace random_access with sequenced in unchecked_map#3956

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

Replace random_access with sequenced in unchecked_map#3956
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:prs/beta-fix/sequenced-unchecked

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 9650a8d into nanocurrency:develop Sep 26, 2022
@pwojcikdev pwojcikdev deleted the prs/beta-fix/sequenced-unchecked branch September 26, 2022 15:06
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