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: LookupId struct instead of u128 #1427

Merged
merged 6 commits into from
Aug 29, 2024
Merged

feat: LookupId struct instead of u128 #1427

merged 6 commits into from
Aug 29, 2024

Conversation

shakedregev
Copy link
Contributor

I changed usages of lookup ids as u128 into structs of 4 u32s, this is done to be compatible with c data types.

@shakedregev
Copy link
Contributor Author

@tamirhemo - fyi

@shakedregev shakedregev changed the title Shaked/lookup feat: LookupId struct instead of u128 Aug 29, 2024
@shakedregev shakedregev self-assigned this Aug 29, 2024
@@ -27,15 +27,16 @@ pub struct AluEvent {
/// The third operand.
pub c: u32,
/// The result of the operation.
pub sub_lookups: [u128; 6],
/// make in the format of [``LookupId``; 6]
Copy link
Contributor

Choose a reason for hiding this comment

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

comments should be full sentence with proper punctuation, this is unprofessional

}

//use crate::events::create_alu_lookup_id;
Copy link
Contributor

Choose a reason for hiding this comment

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

please do not leave random commented lines around

@@ -1,14 +1,14 @@
use serde::{Deserialize, Serialize};

use crate::events::memory::{MemoryReadRecord, MemoryWriteRecord};

use crate::events::LookupId;
Copy link
Contributor

Choose a reason for hiding this comment

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

please add a space after an import

Copy link

SP1 Performance Test Results

PR: feat: LookupId struct instead of u128
Branch: shaked/lookup_id
Commit: 663165cf
Author: shakedregev

program cycles execute (mHz) core (kHZ) compress (KHz) time success
fibonacci 11291 3.01 5.71 0.15 1m15s
ssz-withdrawals 2757356 7.70 58.05 22.05 2m53s
tendermint 12593597 5.66 147.18 95.45 3m40s

@shakedregev shakedregev merged commit 2d5b56d into dev Aug 29, 2024
7 checks passed
@shakedregev shakedregev deleted the shaked/lookup_id branch August 29, 2024 18:35
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.

2 participants