Skip to content

Commit

Permalink
Merge pull request #23381 from JuliaLang/rf/symbol-symbol
Browse files Browse the repository at this point in the history
define Symbol(s::Symbol) = s for performance
  • Loading branch information
JeffBezanson authored Aug 21, 2017
2 parents 288dbb0 + 3cfd75b commit f679273
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/boot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,7 @@ function Symbol(a::Array{UInt8,1})
ccall(:jl_array_ptr, Ptr{UInt8}, (Any,), a),
Intrinsics.arraylen(a))
end
Symbol(s::Symbol) = s

# docsystem basics
macro doc(x...)
Expand Down

0 comments on commit f679273

Please sign in to comment.