pub(crate) const CE_BUFFER_SIZE: usize = 8;Expand description
The number of full 64-bit collation units that get buffered in the primary comparison loop so that they can be examined by the subsequent comparison stregths.
Note 1: If a primary difference is found, the comparison returns early, so these buffers end up holding all the collation elements only if there is no primary difference.
Note 2: Unfortunately for now, a sentinel value signaling the end of input gets written into the buffer in addition to the real collation elements.
This should probably either be halved to 4 on the logic that especially in the presence of the identical prefix optimization, most comparisons return after a couple of primary comparisons or increased to 32 on the logic that such a buffer could better hold a file or human name that differs on secordary or higher level.