refactor: add PublicCallStackItem and remove side_effect_counter from call_context#5177
refactor: add PublicCallStackItem and remove side_effect_counter from call_context#5177
Conversation
727e673 to
124afeb
Compare
124afeb to
266cbd8
Compare
43377af to
a9f2a01
Compare
266cbd8 to
ec36d02
Compare
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
a9f2a01 to
2acec5b
Compare
f86091a to
cfd2290
Compare
Benchmark resultsMetrics with a significant change:
Detailed resultsAll benchmarks are run on txs on the This benchmark source data is available in JSON format on S3 here. Values are compared against data from master at commit L2 block published to L1Each column represents the number of txs on an L2 block published to L1.
L2 chain processingEach column represents the number of blocks on the L2 chain where each block has 16 txs.
Circuits statsStats on running time and I/O sizes collected for every circuit run across all benchmarks.
Tree insertion statsThe duration to insert a fixed batch of leaves into each tree type.
MiscellaneousTransaction sizes based on how many contract classes are registered in the tx.
Transaction processing duration by data writes.
|
| uint256 internal constant INITIAL_L2_BLOCK_NUM = 1; | ||
| uint256 internal constant BLOB_SIZE_IN_BYTES = 126976; | ||
| uint256 internal constant MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS = 15000; | ||
| uint256 internal constant MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS = 20000; |
There was a problem hiding this comment.
Returning a PublicCallStackItem from the oracle increases the bytecode size for contracts. Some contracts went over the limit (e.g. the lending e2e)
| assert(item.public_inputs.call_context.is_static_call == is_static_call); | ||
|
|
||
| // this blows up contract deployments | ||
| // self.public_call_stack_hashes.push(item.hash()); |
There was a problem hiding this comment.
Enabling this line blows up contract bytecode even more (e.g. lending contract goes from ~16k fields to >25k)
6da453f to
9f1dd8f
Compare
3c7fc5b to
7bb4af9
Compare
e005a97 to
c0347ae
Compare
da1b125 to
5cf8f02
Compare
|
I fixed all of the conflicts and used a smaller struct to pass information back to Noir from |
|
I'll close this PR as it's quite old now and will be covered by the avm |
Stacked on top of #5156