From ea2cbb1791326947d8832f2f8b67a4be419ddb4d Mon Sep 17 00:00:00 2001 From: Charles Cooper Date: Fri, 14 Jul 2023 15:15:15 -0400 Subject: [PATCH] update a comment --- vyper/codegen/core.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vyper/codegen/core.py b/vyper/codegen/core.py index 4acfe839ed..54d773dbd7 100644 --- a/vyper/codegen/core.py +++ b/vyper/codegen/core.py @@ -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