Repository navigation
feat(base): what prosperity needs to drop the STL - #24
Merged
Merged
Conversation
…ration for Map and Set Set's stack walker dropped the ancestors whenever it stepped into a right subtree, so a 100-element set iterated 3. Set now walks the tree's successor/predecessor like Map, with a std::set-shaped insert/find/erase. Both gain lower_bound/upper_bound and operator--.
Node-based chaining: references survive inserts and rehashes, find returns an iterator, erase(iterator) returns the next. Fibonacci bucket indexing spreads hashers that leave structure in their low bits.
…ist, ordered Array and Vector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Everything base lacked for prosperity to replace its STL use, plus two bugs found on the way. Each change has tests; the container and threading ones also pass under ASan/UBSan and TSan.
New:
Perf:
Fixed: