-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map(Integer, ::Vector{Any}) throws #10633
Comments
Should this return |
Ideally no; it should return |
The example I was testing in my branch was |
Are these methods actually necessary? On my system, they don't actually seem any faster than the general julia> x = map(Float64, rand(Int, 100000000));
julia> @time for i = 1:10; map(Integer, x); end
elapsed time: 2.734174725 seconds (7629 MB allocated, 1.92% gc time in 9 pauses with 1 full sweep)
julia> @time for i = 1:10; invoke(map, (Any, Vector), Integer, x); end
elapsed time: 2.658263088 seconds (7629 MB allocated, 0.67% gc time in 9 pauses with 0 full sweep)
julia> @time for i = 1:10; map(Integer, x); end
elapsed time: 2.73453461 seconds (7629 MB allocated, 0.66% gc time in 9 pauses with 0 full sweep)
julia> @time for i = 1:10; invoke(map, (Any, Vector), Integer, x); end
elapsed time: 2.633010239 seconds (7629 MB allocated, 0.67% gc time in 9 pauses with 0 full sweep |
Yes, it's definitely arguable that these definitions just complicate things and should use the same |
We could use a comprehension, but that's just kicking the can down the road on #7258. |
@JeffBezanson can we fix this now? |
fix #10633, remove redundant definitions for `map(Integer, a)` etc.
The text was updated successfully, but these errors were encountered: