Skip to content

Commit

Permalink
update disabled precompiles
Browse files Browse the repository at this point in the history
Co-Authored-By: Tim Holy <[email protected]>
  • Loading branch information
IanButterworth and timholy committed Jul 19, 2023
1 parent eacdf46 commit d162b51
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
inv(x)
transpose(x)
_adjoint(Size(S, S), x)
# @assert precompile(Tuple{Core.kwftype(typeof(minimum)),NamedTuple{(:dims,), Tuple{Int}},typeof(minimum),SMatrix{S, S, T, L}})
# @assert precompile(Tuple{Core.kwftype(typeof(maximum)),NamedTuple{(:dims,), Tuple{Int}},typeof(maximum),SMatrix{S, S, T, L}})
minimum(x; dims=1)
minimum(x; dims=2)
maximum(x; dims=1)
maximum(x; dims=2)
getindex(x, SOneTo(S-1), SOneTo(S-1))
y .* x .* y'
zeros(y)
zeros(x)
end
end

# Some expensive generators
# @assert precompile(Tuple{typeof(which(__broadcast,(Any,Size,Tuple{Vararg{Size}},Vararg{Any},)).generator.gen),Any,Any,Any,Any,Any,Any})
# @assert precompile(Tuple{typeof(which(_zeros,(Size,Type{<:StaticArray},)).generator.gen),Any,Any,Any,Type,Any})
# @assert precompile(Tuple{typeof(which(_mapfoldl,(Any,Any,Colon,Any,Size,Vararg{StaticArray},)).generator.gen),Any,Any,Any,Any,Any,Any,Any,Any})

# broadcast_getindex
for m = 0:5, n = m:5
broadcast_getindex(Tuple(1:m), 1, CartesianIndex(n))
Expand Down

0 comments on commit d162b51

Please sign in to comment.