I want to see what’s the fastest way to convert a String to an invertible its binary representation (which I assume will be an array of type T for some T). The codeunit should do the trick but it used to be slow.
Also how do I go back from a bunch of codeunit back to a string?
N = 1_000_000;
K = 100;
# faster string sort
svec = rand("id".*string.(1:N÷K, pad=10), N);
@time meh = reduce(vcat, codeunit.(svec, 1:length(svec)) for svec in svec) # takes too long