Re:Boost:Unordered_flat_map
by IshKebab on Sunday November 20, 2022 @09:39AM
(#33681213)
This is exactly how JavaScript arrays work.
I'm not convinced it's a good idea in general because usually the author will have a good idea about how the data will be accessed and what kind of data there is so if you can choose up front you may as well.
Plus having runtime analysis like that can lead to weird and unpredictable performance characteristics.
I'm not convinced it's a good idea in general because usually the author will have a good idea about how the data will be accessed and what kind of data there is so if you can choose up front you may as well.
Plus having runtime analysis like that can lead to weird and unpredictable performance characteristics.