Skip to content

Commit

Permalink
Make the splat penalty much larger
Browse files Browse the repository at this point in the history
One proposal for JuliaLang#22370
  • Loading branch information
ChrisRackauckas authored Jun 26, 2017
1 parent 3ef68f4 commit 0d342ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 0d342ec

Please sign in to comment.