Skip to content

Commit

Permalink
Don't merge too many writes, because we have to scan them.
Browse files Browse the repository at this point in the history
  • Loading branch information
bredelings committed Jun 30, 2024
1 parent c1538f5 commit c99ba57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/computation/machine/graph_register.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2877,7 +2877,7 @@ const expression_ref& reg_heap::get_reg_value_in_context(int& R, int c)
int reg_heap::set_reg_value_in_context(int P, closure&& C, int c)
{
int t = token_for_context(c);
if (tokens[t].type != token_type::set or not tokens[t].children.empty() or tokens[t].n_context_refs > 1)
if (tokens[t].type != token_type::set or not tokens[t].children.empty() or tokens[t].n_context_refs > 1 or tokens[t].vm_step.delta().size() > 50)
t = switch_to_child_token(c, token_type::set);
else
assert(tokens[t].n_context_refs == 1);
Expand Down

0 comments on commit c99ba57

Please sign in to comment.