mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
optimize recursive call
This commit is contained in:
parent
a37a895016
commit
592a5ace19
1 changed files with 1 additions and 2 deletions
|
@ -1466,8 +1466,7 @@ fn type_to_union_tags<'a>(
|
||||||
let sorted = tags.len() == 1 || sorted_no_duplicates(tags);
|
let sorted = tags.len() == 1 || sorted_no_duplicates(tags);
|
||||||
|
|
||||||
if ext.is_empty_tag_union() {
|
if ext.is_empty_tag_union() {
|
||||||
let ext = type_to_variable(subs, rank, pools, arena, &Type::EmptyTagUnion);
|
let ext = Variable::EMPTY_TAG_UNION;
|
||||||
// let ext = Variable::EMPTY_TAG_UNION;
|
|
||||||
|
|
||||||
let union_tags = if sorted {
|
let union_tags = if sorted {
|
||||||
insert_tags_fast_path(subs, rank, pools, arena, tags)
|
insert_tags_fast_path(subs, rank, pools, arena, tags)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue