We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getfield would be more efficient than eval in getting the value of a variable/type here:
getfield
eval
Query.jl/src/table_query_macros.jl
Line 75 in a4c0ea1
Toy example:
julia> using BenchmarkTools julia> @btime getfield(Main, Symbol("Int")) 0.015 ns (0 allocations: 0 bytes) Int64 julia> @btime eval(Symbol("Int")) 58.841 ns (0 allocations: 0 bytes) Int64
The text was updated successfully, but these errors were encountered:
Yep, true :) Do you want to open a PR?
Probably doesn't make too much of a difference because it shouldn't really run in any kind of inner loop, but still would be nice to fix this.
Sorry, something went wrong.
Sure :)
No branches or pull requests
getfield
would be more efficient thaneval
in getting the value of a variable/type here:Query.jl/src/table_query_macros.jl
Line 75 in a4c0ea1
Toy example:
The text was updated successfully, but these errors were encountered: