DescriptionCL for a discussion in:
https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/vector$20based$20sets/chromium-dev/4uQMma9vj9w/HaQ-WvMOAwAJ
Using flat_set/flat_map to optimise HQP.
Things that are different from standard map/set:
1) Erasing/inserting causes iterator invalidation (like in a vector, which is the default implementation)
2) Has "unsafe_access" - gives a scoped object based on std::unique_ptr, that one can use to violate invariants of the map.
In a destructor restores the invariants, unless one calls release.
This is not even close to the production quality: tests are not sufficient, maybe some interface changes could be good. However this is good enough to advance the conversation.
Patch Set 1 : introducing flat sets/maps #Patch Set 2 : using flat maps/sets to optimise #
Total comments: 1
Patch Set 3 : Fixing performance bug in insert(It, It) #
Total comments: 3
Messages
Total messages: 17 (3 generated)
|