Hi all- It appears that sampling from certain distributions in .4 is slower than .3. Strangely, however, .4 is faster when sampling from a standard uniform distribution. Is there any reason for this? Here are a few cases with typical run times:
#Version .4 *@time rand(10^8);* 0.380916 seconds (9 allocations: 762.940 MB, 20.19% gc time) *@time rand(Normal(0,1),10^8);* 1.393181 seconds (8 allocations: 762.940 MB, 4.37% gc time) *@time rand(Logistic(0,1),10^8);* 3.473583 seconds (8 allocations: 762.940 MB, 1.81% gc time) #Version .3 *@time rand(10^8);* elapsed time: 0.750139665 seconds (800000168 bytes allocated) *@time rand(Normal(0,1),10^8);* elapsed time: 1.145922441 seconds (800000168 bytes allocated) *@time rand(Logistic(0,1),10^8);* elapsed time: 2.867426166 seconds (800000168 bytes allocated)