-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: private reset kernel #7984
Conversation
Changes to circuit sizes
🧾 Summary (100% most significant diffs)
Full diff report 👇
|
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. Proof generationEach column represents the number of threads used in proof generation.
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 8 txs.
Circuits statsStats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.
Stats on running time collected for app circuits
AVM SimulationTime to simulate various public functions in the AVM.
Public DB AccessTime to access various public DBs.
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 size based on fee payment method | Metric | | |
unconstrained pub fn find_index_hint<T, let N: u32, Env>(array: [T; N], find: fn[Env](T) -> bool) -> u32 { | ||
let mut index = N; | ||
for i in 0..N { | ||
if should_propagate[i] { | ||
assert_eq(arr[i], vec_hint.get(verifying_index)); | ||
verifying_index += 1; | ||
} | ||
} | ||
assert_eq(verifying_index, vec_hint.len()); | ||
|
||
vec_hint | ||
} | ||
|
||
unconstrained pub fn find_index_hint<T, let N: u32>(array: [T; N], find: T) -> u32 where T: Eq { | ||
let mut index = 0; | ||
for i in 0..array.len() { | ||
if array[i] == find { | ||
if (index == N) & find(array[i]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!! Much cleaner 👍
🤖 I have created a release *beep* *boop* --- <details><summary>aztec-package: 0.49.1</summary> ## [0.49.1](aztec-package-v0.49.0...aztec-package-v0.49.1) (2024-08-15) ### Miscellaneous * Sync alphanet back to master ([#7970](#7970)) ([523724d](523724d)) </details> <details><summary>barretenberg.js: 0.49.1</summary> ## [0.49.1](barretenberg.js-v0.49.0...barretenberg.js-v0.49.1) (2024-08-15) ### Miscellaneous * **barretenberg.js:** Synchronize aztec-packages versions </details> <details><summary>aztec-packages: 0.49.1</summary> ## [0.49.1](aztec-packages-v0.49.0...aztec-packages-v0.49.1) (2024-08-15) ### Features * Add pending reorg chain resistance in contracts ([#7926](#7926)) ([f769f84](f769f84)) * **avm:** Base and dynamic gas in TS and CPP (part 2) ([#8016](#8016)) ([5801732](5801732)) ### Bug Fixes * Docker.dockerignore file can be huge. ([#8023](#8023)) ([cee9d9a](cee9d9a)) * Forking world state in prover-node ([#7995](#7995)) ([ebffe96](ebffe96)) ### Miscellaneous * **avm:** Separate binary and bytes finalization ([#8010](#8010)) ([3ad6dd9](3ad6dd9)) * Private reset kernel ([#7984](#7984)) ([0d82c79](0d82c79)) * Sync alphanet back to master ([#7970](#7970)) ([523724d](523724d)) </details> <details><summary>barretenberg: 0.49.1</summary> ## [0.49.1](barretenberg-v0.49.0...barretenberg-v0.49.1) (2024-08-15) ### Features * **avm:** Base and dynamic gas in TS and CPP (part 2) ([#8016](#8016)) ([5801732](5801732)) ### Miscellaneous * **avm:** Separate binary and bytes finalization ([#8010](#8010)) ([3ad6dd9](3ad6dd9)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- <details><summary>aztec-package: 0.49.1</summary> ## [0.49.1](AztecProtocol/aztec-packages@aztec-package-v0.49.0...aztec-package-v0.49.1) (2024-08-15) ### Miscellaneous * Sync alphanet back to master ([#7970](AztecProtocol/aztec-packages#7970)) ([523724d](AztecProtocol/aztec-packages@523724d)) </details> <details><summary>barretenberg.js: 0.49.1</summary> ## [0.49.1](AztecProtocol/aztec-packages@barretenberg.js-v0.49.0...barretenberg.js-v0.49.1) (2024-08-15) ### Miscellaneous * **barretenberg.js:** Synchronize aztec-packages versions </details> <details><summary>aztec-packages: 0.49.1</summary> ## [0.49.1](AztecProtocol/aztec-packages@aztec-packages-v0.49.0...aztec-packages-v0.49.1) (2024-08-15) ### Features * Add pending reorg chain resistance in contracts ([#7926](AztecProtocol/aztec-packages#7926)) ([f769f84](AztecProtocol/aztec-packages@f769f84)) * **avm:** Base and dynamic gas in TS and CPP (part 2) ([#8016](AztecProtocol/aztec-packages#8016)) ([5801732](AztecProtocol/aztec-packages@5801732)) ### Bug Fixes * Docker.dockerignore file can be huge. ([#8023](AztecProtocol/aztec-packages#8023)) ([cee9d9a](AztecProtocol/aztec-packages@cee9d9a)) * Forking world state in prover-node ([#7995](AztecProtocol/aztec-packages#7995)) ([ebffe96](AztecProtocol/aztec-packages@ebffe96)) ### Miscellaneous * **avm:** Separate binary and bytes finalization ([#8010](AztecProtocol/aztec-packages#8010)) ([3ad6dd9](AztecProtocol/aztec-packages@3ad6dd9)) * Private reset kernel ([#7984](AztecProtocol/aztec-packages#7984)) ([0d82c79](AztecProtocol/aztec-packages@0d82c79)) * Sync alphanet back to master ([#7970](AztecProtocol/aztec-packages#7970)) ([523724d](AztecProtocol/aztec-packages@523724d)) </details> <details><summary>barretenberg: 0.49.1</summary> ## [0.49.1](AztecProtocol/aztec-packages@barretenberg-v0.49.0...barretenberg-v0.49.1) (2024-08-15) ### Features * **avm:** Base and dynamic gas in TS and CPP (part 2) ([#8016](AztecProtocol/aztec-packages#8016)) ([5801732](AztecProtocol/aztec-packages@5801732)) ### Miscellaneous * **avm:** Separate binary and bytes finalization ([#8010](AztecProtocol/aztec-packages#8010)) ([3ad6dd9](AztecProtocol/aztec-packages@3ad6dd9)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Please read contributing guidelines and remove this line.