The code below is working for 2-3 seconds. Is it real to make it x5-10+ faster? I tried to make poisson bootstrap, but it works slower. Also there is no way to use joblib and multiprocessing features because I have parallelization in higher level of code.
lst = range(1000000)
result = np.random.choice(lst, size=(100, len(lst)), replace=True).mean(axis=1)
I think that the main trouble is reshuffling in np.random.choice, maybe it can be used in optimization.