Skip to content

Commit

Permalink
update a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jul 14, 2023
1 parent 87fb202 commit ea2cbb1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vyper/codegen/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,9 @@ def _complex_make_setter(left, right):
base_cost += 1
# the formula is a heuristic, but it works.
# (CMC 2023-07-14 could get more detailed for PUSH1 vs
# PUSH2 etc but not worried about that too much now)
# PUSH2 etc but not worried about that too much now,
# it's probably better to add a proper unroll rule in the
# optimizer.)
should_batch_copy = len_ >= 32 * base_cost
elif _opt_gas():
# kind of arbitrary, but cut off when code used > ~160 bytes
Expand Down

0 comments on commit ea2cbb1

Please sign in to comment.