[Numpy-discussion] Re: Curious performance different with np.unique on arrays of characters

2023-09-29 Thread Sebastian Berg
On Fri, 2023-09-29 at 11:39 +0200, Klaus Zimmermann wrote: > Hi, > > one thing that's been on my mind about this discussion: > > Isn't sorting strings simply a much harder job? Particularly Unicode > strings? Yes, but in theory if they are length 1 it is just sorting integers (8 or 64bit) for

[Numpy-discussion] Re: Curious performance different with np.unique on arrays of characters

2023-09-29 Thread Klaus Zimmermann
Hi, one thing that's been on my mind about this discussion: Isn't sorting strings simply a much harder job? Particularly Unicode strings? Cheers Klaus On 27/09/2023 13:12, Lyla Watts wrote: Could you share the processor you're currently running this on? I ask because np.sort leverages AVX-