In the similar topic, I'm trying to find maps optimised for a small maximum number of items (8 or 16) indexed by integers.
Curiously I failed to find discussions about this topic..
But std::map seems very badly fit for this kind of map.
The most interesting thing to me is "the compiler reduces
its optimizations with increasing compilation effort, when compiling only a single source file." Is this GCC-specific, or does it also hold for clang? And can it be tuned away?
Clang will not "reduce compilation effort" and I do not believe GCC does that. There are heuristics that look at things like function size but I don't think that is what they mean. Generally speaking, translation units are independent if you do not run link-time-optimizations (LTO) and optimizations follow a (basically) predetermined order which might be influence by the input but not by the amount of work done.
[+] [-] renox|6 years ago|reply
[+] [-] matt_d|6 years ago|reply
- BitMagic: http://bitmagic.io/, https://github.com/tlk00/BitMagic
- Succinct Data Structure Library 2.0: https://github.com/simongog/sdsl-lite, https://github.com/simongog/sdsl-lite/wiki/Literature
[+] [-] jdoerfert|6 years ago|reply
[+] [-] thedance|6 years ago|reply
[+] [-] jdoerfert|6 years ago|reply
[+] [-] unknown|6 years ago|reply
[deleted]
[+] [-] Upvoter33|6 years ago|reply