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

refactor(papyrus_state_reader): code cleanup + caching with sierra only if native flag is on #2926

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

noaov1
Copy link
Collaborator

@noaov1 noaov1 commented Dec 24, 2024

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@noaov1 noaov1 force-pushed the noa/refactor_papyrus_state branch from 77bcf56 to c9ea09f Compare December 24, 2024 13:38
@noaov1 noaov1 changed the title refactor(papyrus_state_reader): some code cleanup resulting in: caching with sierra only with native flag on refactor(papyrus_state_reader):code cleanup + change behavior:caching with sierra only if native flag is on Dec 24, 2024
@noaov1 noaov1 force-pushed the noa/refactor_papyrus_state branch from c9ea09f to cbb09a4 Compare December 24, 2024 13:41
@noaov1 noaov1 changed the title refactor(papyrus_state_reader):code cleanup + change behavior:caching with sierra only if native flag is on refactor(papyrus_state_reader):code cleanup + caching with sierra only if native flag is on Dec 24, 2024
@noaov1 noaov1 force-pushed the noa/refactor_papyrus_state branch 2 times, most recently from 7f46c96 to 73a191d Compare December 24, 2024 13:51
@noaov1 noaov1 changed the title refactor(papyrus_state_reader):code cleanup + caching with sierra only if native flag is on refactor(papyrus_state_reader): code cleanup + caching with sierra only if native flag is on Dec 24, 2024
Copy link

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [34.483 ms 34.604 ms 34.755 ms]
change: [+1.1525% +1.5550% +2.0063%] (p = 0.00 < 0.05)
Performance has regressed.
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) high mild
3 (3.00%) high severe

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 3 of 3 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1)

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.

:lgtm:

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

@avi-starkware
Copy link
Contributor

crates/papyrus_state_reader/src/papyrus_state.rs line 84 at r1 (raw file):

            #[cfg(feature = "cairo_native")]
            let cached_casm = if !self.contract_class_manager.run_cairo_native() {
                CachedCasm::WithoutSierra(runnable_casm);

Suggestion:

                CachedCasm::WithoutSierra(runnable_casm)

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.

Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @noaov1)

@noaov1 noaov1 force-pushed the noa/refactor_papyrus_state branch from 73a191d to ab2dad5 Compare December 24, 2024 14:46
Copy link
Collaborator Author

@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.

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


crates/papyrus_state_reader/src/papyrus_state.rs line 84 at r1 (raw file):

            #[cfg(feature = "cairo_native")]
            let cached_casm = if !self.contract_class_manager.run_cairo_native() {
                CachedCasm::WithoutSierra(runnable_casm);

Nice! I wonder how come the the build with native feature flag was completed successfully.
Done.

Copy link
Contributor

@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.

Reviewed 2 of 3 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noaov1)

@noaov1 noaov1 merged commit 357c73e into main-v0.13.4 Dec 24, 2024
21 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 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.

4 participants