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

chore(blockifier): add feild channel_size to contract_class_manager_config #2902

Open
wants to merge 1 commit into
base: main-v0.13.4
Choose a base branch
from

Conversation

avivg-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

avivg-starkware commented Dec 23, 2024

@avivg-starkware avivg-starkware marked this pull request as ready for review December 23, 2024 13:28
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_channel_size_to_contact_manager_config branch 2 times, most recently from 7868dcc to 7da8920 Compare December 23, 2024 13:47
@avi-starkware
Copy link
Contributor

crates/blockifier/src/state/contract_class_manager.rs line 31 at r1 (raw file):

use crate::state::global_cache::{CachedCasm, ContractCaches};

pub const CHANNEL_SIZE: usize = 1000;

Suggestion:

pub const DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE: usize = 1000;

Copy link
Contributor

@avi-starkware avi-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 4 of 4 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware and @noaov1)

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_channel_size_to_contact_manager_config branch 3 times, most recently from 9c10bca to 0adfb8c Compare December 24, 2024 14:03
Copy link
Contributor Author

@avivg-starkware avivg-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: 1 of 4 files reviewed, 1 unresolved discussion (waiting on @avi-starkware and @noaov1)


crates/blockifier/src/state/contract_class_manager.rs line 31 at r1 (raw file):

use crate::state::global_cache::{CachedCasm, ContractCaches};

pub const CHANNEL_SIZE: usize = 1000;

Done.

Copy link
Collaborator

@noaov1 noaov1 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 r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avi-starkware and @avivg-starkware)


crates/blockifier/src/state/contract_class_manager.rs line 96 at r2 (raw file):

            }

            let (sender, receiver) = sync_channel(DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE);

Suggestion:

            let (sender, receiver) = sync_channel(config.channel_size);

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_channel_size_to_contact_manager_config branch from 0adfb8c to e39a328 Compare December 25, 2024 13:02
Copy link
Contributor Author

@avivg-starkware avivg-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: 3 of 4 files reviewed, 2 unresolved discussions (waiting on @avi-starkware and @noaov1)


crates/blockifier/src/state/contract_class_manager.rs line 96 at r2 (raw file):

            }

            let (sender, receiver) = sync_channel(DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE);

Done.

Copy link
Contributor

@avi-starkware avi-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 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @avivg-starkware and @noaov1)


crates/blockifier/src/state/contract_class_manager.rs line 129 at r3 (raw file):

                    "Compilation request channel is full (size: {}). Compilation request for \
                     class hash {} was not sent.",
                    DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE,

Suggestion:

self.config.channel_size

Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)

Copy link
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

Please rebase over main-13.4

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avivg-starkware)

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_channel_size_to_contact_manager_config branch from e39a328 to 19dab86 Compare December 26, 2024 10:10
@avivg-starkware avivg-starkware changed the base branch from main to main-v0.13.4 December 26, 2024 10:10
Copy link
Contributor Author

@avivg-starkware avivg-starkware left a comment

Choose a reason for hiding this comment

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

Done

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware)


crates/blockifier/src/state/contract_class_manager.rs line 129 at r3 (raw file):

                    "Compilation request channel is full (size: {}). Compilation request for \
                     class hash {} was not sent.",
                    DEFAULT_COMPILATION_REQUEST_CHANNEL_SIZE,

Done.

@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_channel_size_to_contact_manager_config branch from 19dab86 to 87a8788 Compare December 26, 2024 10:18
@avivg-starkware avivg-starkware force-pushed the avivg/blockifier/add_channel_size_to_contact_manager_config branch from 87a8788 to b7e2924 Compare December 26, 2024 15:44
Copy link
Collaborator

@noaov1 noaov1 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 1 of 1 files at r4, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @avi-starkware)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants