Skip to content

Commit

Permalink
Merge pull request #15177 from JuliaLang/yyc/fast-doc
Browse files Browse the repository at this point in the history
Make doc collection 600x faster in genstdlib.jl
  • Loading branch information
yuyichao committed Feb 22, 2016
2 parents aa08b2a + e3c1b22 commit 1b7d009
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion doc/genstdlib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ function add_all_docs(it)
end
end

function add_all_docs(it, k)
function add_all_docs(it, k::ANY)
for (_, v) in it
all_docs[v] = k
end
end

function sym_exported(obj::ANY, m, exports)
if isa(obj, Function)
try
return typeof(obj).name.mt.name in exports
end
end
if isa(obj, Union{Function,DataType,Module})
return symbol(string(obj)) in exports
elseif isa(obj, IntrinsicFunction)
Expand Down

0 comments on commit 1b7d009

Please sign in to comment.