mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
make deep_copy_var_to allocate less
This commit is contained in:
parent
ed455777a2
commit
6934e69240
2 changed files with 71 additions and 86 deletions
|
@ -1872,7 +1872,7 @@ fn deep_copy_var_help(
|
|||
|
||||
Alias(symbol, arguments, real_type_var) => {
|
||||
let new_variables =
|
||||
VariableSubsSlice::reserve_into_subs(subs, arguments.all_variables_len as _);
|
||||
SubsSlice::reserve_into_subs(subs, arguments.all_variables_len as _);
|
||||
for (target_index, var_index) in (new_variables.indices()).zip(arguments.variables()) {
|
||||
let var = subs[var_index];
|
||||
let copy_var = deep_copy_var_help(subs, max_rank, pools, visited, var);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue