From e44623207a39ad4830c7c6ea7a85e13018f5cb9b Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 25 Jun 2017 19:27:23 -0700 Subject: [PATCH] Max the cutoff for splat penalty much higher One proposal for https://github.com/JuliaLang/julia/issues/22370 --- base/inference.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/inference.jl b/base/inference.jl index 9f6be327d8e19..d36ef325c8217 100644 --- a/base/inference.jl +++ b/base/inference.jl @@ -4,7 +4,7 @@ import Core: _apply, svec, apply_type, Builtin, IntrinsicFunction, MethodInstanc #### parameters limiting potentially-infinite types #### const MAX_TYPEUNION_LEN = 3 -const MAX_TYPE_DEPTH = 8 +const MAX_TYPE_DEPTH = 1000 const TUPLE_COMPLEXITY_LIMIT_DEPTH = 3 const MAX_INLINE_CONST_SIZE = 256 @@ -27,9 +27,9 @@ struct InferenceParams function InferenceParams(world::UInt; inlining::Bool = inlining_enabled(), max_methods::Int = 4, - tupletype_len::Int = 15, + tupletype_len::Int = 1000, tuple_depth::Int = 4, - tuple_splat::Int = 16, + tuple_splat::Int = 1000, union_splitting::Int = 4, apply_union_enum::Int = 8) return new(world, inlining, max_methods, tupletype_len,