compile:
python3 setup.py build_ext -if
using:
from pargsort import pargsort
import numpy as np
arr = np.random.uniform(0,100,100000000)
%timeit pargsort(arr)
%timeit np.argsort(arr)
Unkonw problem:
When processing a very large number of numbers, such as arr = np.random.uniform(0,100,100000000)
(an extra zero),
the function will degrade to single core.