-
Notifications
You must be signed in to change notification settings - Fork 566
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
Contract segmentation: Add bytecode_segment_lengths to CasmContractClass. #4515
Contract segmentation: Add bytecode_segment_lengths to CasmContractClass. #4515
Conversation
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.
Reviewed all commit messages.
Reviewable status: 0 of 3 files reviewed, 2 unresolved discussions (waiting on @liorgold2)
crates/cairo-lang-starknet/src/contract_segmentation.rs
line 16 at r1 (raw file):
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] #[serde(untagged)] pub enum NestedIntList {
why not a vec of vecs?
crates/cairo-lang-starknet/src/contract_segmentation.rs
line 22 at r1 (raw file):
#[derive(Error, Debug, Eq, PartialEq)]
Suggestion:
}
#[derive(Error, Debug, Eq, PartialEq)]
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.
Reviewable status: 0 of 3 files reviewed, 2 unresolved discussions (waiting on @orizi)
crates/cairo-lang-starknet/src/contract_segmentation.rs
line 16 at r1 (raw file):
Previously, orizi wrote…
why not a vec of vecs?
The OS supports any tree. In particular, I want to do some optimizations later. E.g., if a function has one segment then it will be a leaf instead of a node with one child. Same for small functions (as there is a non-negligible overhead in the handling of segments in the OS, compared to computing Poseidon)
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.
Reviewable status: 0 of 3 files reviewed, 2 unresolved discussions (waiting on @orizi)
crates/cairo-lang-starknet/src/contract_segmentation.rs
line 22 at r1 (raw file):
#[derive(Error, Debug, Eq, PartialEq)]
Done.
c7a5942
to
9ae0ea3
Compare
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.
Reviewable status: 0 of 3 files reviewed, 2 unresolved discussions (waiting on @liorgold2)
crates/cairo-lang-starknet/src/contract_segmentation.rs
line 16 at r1 (raw file):
Previously, liorgold2 wrote…
The OS supports any tree. In particular, I want to do some optimizations later. E.g., if a function has one segment then it will be a leaf instead of a node with one child. Same for small functions (as there is a non-negligible overhead in the handling of segments in the OS, compared to computing Poseidon)
what i assumed - but please add some doc as to why.
…ass. commit-id:68464189
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.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion (waiting on @orizi)
crates/cairo-lang-starknet/src/contract_segmentation.rs
line 16 at r1 (raw file):
Previously, orizi wrote…
what i assumed - but please add some doc as to why.
Done.
9ae0ea3
to
eae1920
Compare
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.
Reviewed 2 of 3 files at r1, 1 of 1 files at r3.
Reviewable status: 2 of 3 files reviewed, all discussions resolved (waiting on @liorgold2)
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.
Reviewed 1 of 2 files at r2, all commit messages.
Reviewable status: complete! all files reviewed, all discussions resolved (waiting on @liorgold2)
Stack:
This change is