Performance of concurrent code using dispatch_group_async is MUCH slower than single-threaded version
问题 I've been doing some experimentation lately on using large numbers of random numbers to generate "normal distribution" bell curves. The approach is simple: Create an array of integers and zero it out. (I'm using 2001 integers) Repeatedly calculate indexes in this array and index that entry in the array, as follows Loop either 999 or 1000 times. On each iteration: Seed an array index with the center value (1000) Generate a random number = +1/-1. and add it to the array index at the end of the