top | item 22323721

Engineering Faster Sorters for Small Sets of Items

38 points| matt_d | 6 years ago |arxiv.org | reply

9 comments

order
[+] renox|6 years ago|reply
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.
[+] thedance|6 years ago|reply
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?
[+] jdoerfert|6 years ago|reply
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.
[+] Upvoter33|6 years ago|reply
Love papers like this, hyper-focused on a fun problem and then full of hacks.