>>21Can you give a concrete example of a problem in which 1) you need to encode information by ordering, 2) you cannot rely on an optimizer to do so, and 3) there is not another (relatively simple) method of encoding this information?
Let's say we have a number of memory pools, used to do BIBOP allocation. Each pool has corresponding handler, which hardcodes stuff like memcpy and memcmp for its corresponding pool size. We want these pool handlers to be ordered in memory according their pool sizes, so that determining if object can be copied from one pool to the other would require just handler pointer comparison, instead of calling their length functions and comparing results.