> Hi, > > trying to rebuild the 0.146 CHD set on Unix to avoid re-downloading, I found that the > Huffman compressor (src/lib/util/huffman.c) depends on an exact behavior of the > external qsort() function. Because Quicksort is not a stable sort and the node > weights which are compared can be the same for different node entries, output of > Quicksort is not unambiguously defined. > > This makes chdman produce different outputs on different operating systems.
AFAIK Huffman was used for v4 CHDs and those produced the same output on different operating systems. Are you sure this is actually the problem - ie, you've dumped qsort() output from a CHDMAN run on Windows and Linux?
|