Skip to content

Commit

Permalink
fix perf regression
Browse files Browse the repository at this point in the history
fix perf regression related to findfirst over a svec.

related: julialang issue 27995
  • Loading branch information
tanmaykm committed Jul 9, 2018
1 parent fd8f18a commit 677e707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ProtoBuf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export ProtoServiceException, ProtoRpcChannel, ProtoRpcController, MethodDescrip
using Compat

fld_type(o::T, fld) where {T} = fieldtype(T, fld)
fld_names(x) = x.name.names
fld_names(x) = (x.name.names...,) # (avoid https://github.com/JuliaLang/julia/issues/27995) x.name.names

# enable logging only during debugging
macro logmsg(s)
Expand Down

0 comments on commit 677e707

Please sign in to comment.