3 ms·
That's a great idea, and it will probably speed up possible native implementations (though likely at the expense of scripting languages). To deal with large ru
by DenisM 16y ago
That's a great idea, and it will probably speed up possible native implementations (though likely at the expense of scripting languages).
To deal with large runs of identical numbers (e.g. all zeroes) someone suggested in my blog comments to XOR the input array with a result of a chosen pseudo-random function. This will bring any dataset into the realm of average (5.9375) except for the dataset that is specifically targeting the chosen pseudo-random function. :)