speedup distribution sampling eliminating atomic access