Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Test where the tipping point is #738

Open
recmo opened this issue Sep 25, 2020 · 0 comments
Open

Test where the tipping point is #738

recmo opened this issue Sep 25, 2020 · 0 comments
Assignees
Labels
refactor Improves the code quality tracker Issues generated from source comments

Comments

@recmo
Copy link
Contributor

recmo commented Sep 25, 2020

On 2020-09-24 @recmo wrote in f724670 “Optimize small exponents”:

Test where the tipping point is

                            (_, 0) => "0x01".to_owned(),
                            (a, 1) => a.soldity_encode(memory_layout),
                            (a, e) if *e <= 4 => {
                                format!("exp{}({})", e, a.soldity_encode(memory_layout))
                            }
                            // TODO: Test where the tipping point is
                            (a, e) if *e < 16 => {
                                format!(
                                    "small_expmod({}, {})",
                                    a.soldity_encode(memory_layout),
                                    e.to_string()

From crypto/stark/src/solidity_verifier.rs:171

@recmo recmo added refactor Improves the code quality tracker Issues generated from source comments labels Sep 25, 2020
@recmo recmo self-assigned this Sep 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
refactor Improves the code quality tracker Issues generated from source comments
Projects
None yet
Development

No branches or pull requests

1 participant