|
|
|
|
|
by jcelerier
945 days ago
|
|
... Or much smaller, I remember a benchmark for a case I had a few years ago, the cutoff I had for a map being faster than std::vector/array & linear probing was closer to N=10 that 100. (Not std::map, at the time it must have been something like tsl:: hopscotch_map). Note also that nowadays for instance boost comes with state-of-the-art flat_map and flat_unordered_map which gives both the cache coherency for small sizes and the algorithmic characteristics of various kinds of maps |
|