Skip to content
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

feat(blockifier): add n_allocated_keys #2149

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

yoavGrs
Copy link
Contributor

@yoavGrs yoavGrs commented Nov 18, 2024

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

Artifacts upload triggered. View details here

Copy link

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 73.91304% with 6 lines in your changes missing coverage. Please review.

Project coverage is 68.67%. Comparing base (e3165c4) to head (d8ad5ee).
Report is 586 commits behind head on main.

Files with missing lines Patch % Lines
crates/blockifier/src/state/cached_state.rs 73.91% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2149       +/-   ##
===========================================
+ Coverage   40.10%   68.67%   +28.56%     
===========================================
  Files          26      108       +82     
  Lines        1895    13924    +12029     
  Branches     1895    13924    +12029     
===========================================
+ Hits          760     9562     +8802     
- Misses       1100     3951     +2851     
- Partials       35      411      +376     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Reviewed all commit messages.
Reviewable status: 0 of 13 files reviewed, 1 unresolved discussion (waiting on @nimrod-starkware and @yoavGrs)


a discussion (no related file):
please split this PR
there are functions being moved to different types here, they can be separated (if you can think of other things that can be split away please do)

@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 34effde to c25c984 Compare November 19, 2024 11:17
Copy link

Artifacts upload triggered. View details here

@yoavGrs yoavGrs changed the base branch from main to yoav/compression/state_changes_count_for_fee November 19, 2024 12:28
Copy link

Artifacts upload triggered. View details here

@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from c25c984 to 63e3201 Compare November 19, 2024 12:56
Copy link

Artifacts upload triggered. View details here

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.

Reviewed 13 of 13 files at r7, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @nimrod-starkware and @yoavGrs)


crates/blockifier/src/state/cached_state.rs line 687 at r7 (raw file):

impl AllocatedKeys {
    pub fn extend(&mut self, state_change: &StateChanges) {

you are not going to implement this with extend later

Suggestion:

update

crates/blockifier/src/state/cached_state.rs line 692 at r7 (raw file):

    }

    pub fn count(&self) -> usize {

seems natural, non-blocking

Suggestion:

len

@yoavGrs yoavGrs force-pushed the yoav/compression/state_changes_count_for_fee branch from 46a6da2 to 868b6b6 Compare November 19, 2024 15:43
@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 63e3201 to 2d9b007 Compare November 19, 2024 15:43
Copy link
Contributor Author

@yoavGrs yoavGrs left a comment

Choose a reason for hiding this comment

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

Reviewable status: 10 of 13 files reviewed, 2 unresolved discussions (waiting on @dorimedini-starkware and @nimrod-starkware)


a discussion (no related file):

Previously, dorimedini-starkware wrote…

please split this PR
there are functions being moved to different types here, they can be separated (if you can think of other things that can be split away please do)

Done.


crates/blockifier/src/state/cached_state.rs line 687 at r7 (raw file):

Previously, dorimedini-starkware wrote…

you are not going to implement this with extend later

Done.


crates/blockifier/src/state/cached_state.rs line 692 at r7 (raw file):

Previously, dorimedini-starkware wrote…

seems natural, non-blocking

Rust asks me to implement is_empty as well.

Copy link

Artifacts upload triggered. View details here

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.

:lgtm:

Reviewed 3 of 3 files at r8, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)


crates/blockifier/src/state/cached_state.rs line 692 at r7 (raw file):

Previously, yoavGrs wrote…

Rust asks me to implement is_empty as well.

lol ok

@yoavGrs yoavGrs force-pushed the yoav/compression/state_changes_count_for_fee branch from 868b6b6 to d7d90ca Compare November 20, 2024 06:34
@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 2d9b007 to 2e91cee Compare November 20, 2024 06:34
Copy link

Artifacts upload triggered. View details here

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.

Reviewed 3 of 3 files at r9, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)

@yoavGrs yoavGrs force-pushed the yoav/compression/state_changes_count_for_fee branch from d7d90ca to 3cf36e7 Compare November 25, 2024 13:58
@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 2e91cee to 13f1440 Compare November 25, 2024 13:58
@yoavGrs yoavGrs force-pushed the yoav/compression/state_changes_count_for_fee branch from 3cf36e7 to bb121ba Compare November 25, 2024 15:07
@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 13f1440 to 13ad371 Compare November 25, 2024 15:07
@yoavGrs yoavGrs force-pushed the yoav/compression/state_changes_count_for_fee branch from bb121ba to d3b22a0 Compare November 25, 2024 16:02
@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 13ad371 to 9a5a07d Compare November 25, 2024 16:02
@yoavGrs yoavGrs changed the base branch from yoav/compression/state_changes_count_for_fee to yoav/compression/allocation_cost_constant November 26, 2024 09:09
@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from 9a5a07d to f3f9f90 Compare November 26, 2024 09:09
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.

Reviewed 3 of 3 files at r10, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)

Copy link
Contributor Author

yoavGrs commented Nov 26, 2024

Merge activity

  • Nov 26, 5:53 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Nov 26, 5:55 AM EST: Graphite rebased this pull request as part of a merge.
  • Nov 26, 6:13 AM EST: A user merged this pull request with Graphite.

@yoavGrs yoavGrs changed the base branch from yoav/compression/allocation_cost_constant to graphite-base/2149 November 26, 2024 10:53
@yoavGrs yoavGrs changed the base branch from graphite-base/2149 to main November 26, 2024 10:53
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.

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @nimrod-starkware)

@yoavGrs yoavGrs force-pushed the yoav/compression/allocated_keys_structure branch from f3f9f90 to d8ad5ee Compare November 26, 2024 10:54
@yoavGrs yoavGrs merged commit f1fb7c8 into main Nov 26, 2024
13 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 29, 2024
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.

3 participants