array_unique() Is Slow¶
Why is array_unique() still slower than using a combinaison of array_count_values() and array_keys? And by an order of magnitude.
Limitations includes that the array can only use integers and strings, so no objects or other arrays (no one should anyway), or floats, boolean and nulls (harder to weed out).
And, of course, the alternative is not actually readable.