Is there a way to parallelize the implementation of np.searchsorted()?
I have a situation where the base array a and value array v are of the same order of size. From what I understand of the search sorted algorithm, it does the operation for each element in v in turn. I'd like to parallelize it so it performs this sorting on multiple elements of v at the same time. (If I have 32 cores, it should be able to sort 32 elements at once, right?) Is there a way to implement this?
I tried to use Numba @jit(nopython=True, nogil=True, parallel=True) but it shows no improvement in speed and no increase in CPU usage.
For reference, a and v are lists of integers with length on the order of 10^7 elements.