-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
There appears to be some runtime overhead from using this package, it's not especially onerous, but it's definitely present:
julia> using WhereTraits, BenchmarkTools
julia> @traits f(x) = x
julia> @btime f(1);
22.215 ns (0 allocations: 0 bytes)compare against
julia> g(x) = x;
julia> @btime g(1);
1.356 ns (0 allocations: 0 bytes)Doing some inspection, I think this is due to the conflict resolution system which should be resolved at compile time instead of runtime. Is there anything we can do about this?
schlichtanders
Metadata
Metadata
Assignees
Labels
No labels