Skip to content

Conversation

@VolodymyrBg
Copy link
Contributor

SignatureBuiltinRunner had 7 instances of Felt252::from_bytes_be(&x.to_bytes_be()) scattered across 5 methods. These were identity operations — serializing a Felt to a 32-byte array and immediately parsing it back to the same type. This was a leftover from when starknet-crypto used its own FieldElement type and byte conversion was needed to bridge between FieldElement and Felt252. Since the migration to starknet-types-core::Felt (starknet-crypto 0.7+), both sides use the exact same type, making these roundtrips pure overhead.

@VolodymyrBg
Copy link
Contributor Author

Bench results:
image
image

@gabrielbosio
Copy link
Collaborator

gabrielbosio commented Feb 9, 2026

@VolodymyrBg what commands did you run to get those results? What are the specs used to run the benchmarks: Rust profile, commit used for the "Before" case, RAM, OS, arch, processor?

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