You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the bad subject name but I am struggling to understand what is going on in the below code.
I noticed that vector allocation sometimes take an unusual amount of time to run. Please note the ~100ms for Julia 1.11 below. This can also be seen in 1.10.
Note I am on windows.
Regards
import Random, Dates
Random.seed!(1234)
xp =rand(10^8)
functionfoofoo(xp::AbstractVector{T}, len =length(xp)) where {T}
t =Vector{Dates.DateTime}(undef, 2)
t[1] = Dates.now()
vans =Vector{T}(undef, len)
t[2] = Dates.now()
println("Time: $(t[2]-t[1])")
vans
endfor _ in1:10foofoo(xp);
end
Hi,
Sorry for the bad subject name but I am struggling to understand what is going on in the below code.
I noticed that vector allocation sometimes take an unusual amount of time to run. Please note the ~100ms for Julia 1.11 below. This can also be seen in 1.10.
Note I am on windows.
Regards
JULIA 1.9.2
JULIA 1.11.0-DEV
The text was updated successfully, but these errors were encountered: