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

Replace random_access with sequenced in unchecked_map #3956

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)

@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.

None yet

3 participants