Closed jix closed 1 year ago
Thanks for the report, and replication case!
This happened when there was an n'th byte that for all inputs was zero, with non-zero bytes afterwards. This would inadvertently re-use the byte counts for the previous byte (zero) for all following bytes.
I've fixed this in 0.20.11
along with a couple of other edge cases. You can see the changes here:
https://github.com/Nessex/rdst/commit/f5ad4536741a49ad961cb543e030847d7ebf6ce3
I noticed that rdst wouldn't reliably sort inputs and managed to reduce it down from my 80 GB of
[u8; 36]
input use case down to this small testcase, which fails consistently for me: