Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I noticed that the IR optimizer is better for all contracts **except** the FCL library. This PR optimizes the compiler configuration to take advantage of the IR optimizer, while adding an exception for the FCL P-256 verifier contract so that it does not suffer any regressions. ``` === BEFORE === Gas Benchmarking [@bench] SafeWebAuthnSignerProxy ⛽ deployment: 94366 ✔ Benchmark signer deployment cost (476ms) ⛽ verification (FreshCryptoLib): 216907 ✔ Benchmark signer verification cost with FreshCryptoLib verifier (116ms) ⛽ verification (Daimo): 346809 ✔ Benchmark signer verification cost with Daimo verifier (103ms) ⛽ verification (Dummy): 14309 ✔ Benchmark signer verification cost with Dummy verifier (100ms) ⛽ verification (Precompile): 15098 ✔ Benchmark signer verification cost with Precompile verifier (104ms) === AFTER === Gas Benchmarking [@bench] SafeWebAuthnSignerProxy ⛽ deployment: 90399 ✔ Benchmark signer deployment cost (494ms) ⛽ verification (FreshCryptoLib): 215532 ✔ Benchmark signer verification cost with FreshCryptoLib verifier (123ms) ⛽ verification (Daimo): 345458 ✔ Benchmark signer verification cost with Daimo verifier (103ms) ⛽ verification (Dummy): 12911 ✔ Benchmark signer verification cost with Dummy verifier (96ms) ⛽ verification (Precompile): 13726 ✔ Benchmark signer verification cost with Precompile verifier (106ms) ```
- Loading branch information