Skip to content

Conversation

@ArielElp
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

ArielElp commented Dec 10, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from 01c2851 to ba78a66 Compare December 10, 2025 11:26
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 4402c0e to 5a62fc2 Compare December 10, 2025 11:26
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from ba78a66 to 7578dc0 Compare December 10, 2025 13:16
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch 2 times, most recently from b3f70f7 to 70f1731 Compare December 10, 2025 14:20
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch 2 times, most recently from 59b51ce to f733314 Compare December 10, 2025 15:06
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 70f1731 to 6c50273 Compare December 10, 2025 15:06
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from f733314 to 8ff59c0 Compare December 10, 2025 15:35
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 6c50273 to 9f1b96e Compare December 10, 2025 15:35
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from 8ff59c0 to ac40644 Compare December 10, 2025 15:41
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 9f1b96e to c3c62a4 Compare December 10, 2025 15:41
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from ac40644 to e30a635 Compare December 10, 2025 15:53
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from c3c62a4 to e664009 Compare December 10, 2025 15:53
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from e30a635 to f25ec01 Compare December 10, 2025 19:58
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from e664009 to 909fb4e Compare December 10, 2025 19:58
@ArielElp ArielElp force-pushed the ariel/add_index_layout_leaves branch from f25ec01 to aad75aa Compare December 11, 2025 06:51
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 909fb4e to 2c4bcff Compare December 11, 2025 06:51
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch 2 times, most recently from 1c1145c to 14fb5d0 Compare December 25, 2025 15:27
Copy link
Contributor Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ArielElp made 2 comments.
Reviewable status: 4 of 7 files reviewed, 1 unresolved discussion (waiting on @dorimedini-starkware).


crates/starknet_committer/src/db/index_db/serde_tests.rs line 64 at r12 (raw file):

Previously, dorimedini-starkware wrote…

ok now I notice these functions have no arguments:
please convert them to statics with LazyLock (see example in the first one).
this is useful so we don't compute the same hashes multiple times (there will be more tests in the future, I guess).

another approach would be to create 3 utility functions that get nice "regular numbers" as input and output these complex objects, to reduce boilerplate (this is what we did in the starknet_patricia crate tests)

Done (moved the three objects whose construction involves hashing under LazyLock)


crates/starknet_committer/src/db/index_db/serde_tests.rs line 155 at r12 (raw file):

Previously, dorimedini-starkware wrote…

what is this dark magic

Just U256 from two u128 (wrong shift direction on high 128 bits... fixed)
I realized U256 has shift so just doing the right thing now

@ArielElp ArielElp force-pushed the ariel/index_layout_subtree branch from f0ae1a9 to c0a23c6 Compare December 25, 2025 15:46
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 14fb5d0 to 0070c94 Compare December 25, 2025 15:46
Copy link
Collaborator

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dorimedini-starkware reviewed 3 files and all commit messages, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @ArielElp).

@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from 0070c94 to e6d71c6 Compare December 25, 2025 18:34
@ArielElp ArielElp force-pushed the ariel/index_layout_subtree branch from c0a23c6 to 08c16bf Compare December 25, 2025 18:34
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from e6d71c6 to da5f5c2 Compare December 26, 2025 07:09
@ArielElp ArielElp force-pushed the ariel/index_layout_subtree branch 2 times, most recently from ad3c4db to ff8df93 Compare December 28, 2025 09:12
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from da5f5c2 to d8d9f88 Compare December 28, 2025 09:12
@ArielElp ArielElp changed the base branch from ariel/index_layout_subtree to graphite-base/10682 December 29, 2025 09:28
@ArielElp ArielElp force-pushed the graphite-base/10682 branch from ff8df93 to d0c0f43 Compare December 29, 2025 09:28
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from d8d9f88 to ca195e9 Compare December 29, 2025 09:28
@ArielElp ArielElp changed the base branch from graphite-base/10682 to main-v0.14.1-committer December 29, 2025 09:28
@ArielElp ArielElp force-pushed the ariel/add_index_layout_node_and_subtree branch from ca195e9 to dfaaf90 Compare December 30, 2025 12:37
@ArielElp ArielElp added this pull request to the merge queue Dec 30, 2025
Merged via the queue into main-v0.14.1-committer with commit 8f999d9 Dec 30, 2025
18 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants