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

perf: Remove some binary ops & make KERNEL init section free of logic operations #658

Merged
merged 2 commits into from
Sep 26, 2024

Conversation

Nashtare
Copy link
Collaborator

@Nashtare Nashtare commented Sep 24, 2024

Removes the 3 logic operations initially required by the segmentation mechanism (at the cost of 3 extra 1 extra CPU cycle per segment), to allow for full removal of LogicStark table when possible, following @sai-deng's approach on the Keccak table.

Also did a pass on binary ops in the Kernel, as most of them could be expressed differently at no extra cost, to try make it even more likely to happen (simple_transfer goes from 1112 to 173 binary ops).

@Nashtare Nashtare added this to the Performance Tuning milestone Sep 24, 2024
@Nashtare Nashtare self-assigned this Sep 24, 2024
@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label Sep 24, 2024
Copy link
Contributor

@hratoanina hratoanina left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

@Nashtare Nashtare merged commit 18e5bd4 into develop Sep 26, 2024
16 checks passed
@Nashtare Nashtare deleted the perf/remove_and branch September 26, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants