Actually do what I meant to in the inline threshold. Don't drink and code. Cut rustc by 50kb.
This commit is contained in:
parent
967a6f861d
commit
a441865f6e
1 changed files with 4 additions and 4 deletions
|
@ -281,14 +281,14 @@ let trans_visitor
|
|||
in
|
||||
|
||||
let should_inline_structure_helpers t =
|
||||
let n = 2 in
|
||||
let n = 3 in
|
||||
match t with
|
||||
Ast.TY_tag ttag ->
|
||||
get_n_tag_tups cx ttag > n
|
||||
get_n_tag_tups cx ttag < n
|
||||
| Ast.TY_rec elts ->
|
||||
Array.length elts > 3
|
||||
Array.length elts < n
|
||||
| Ast.TY_tup elts ->
|
||||
Array.length elts > 3
|
||||
Array.length elts < n
|
||||
| _ -> false
|
||||
in
|
||||
|
||||
|
|
Loading…
Reference in a new issue