0xPolygonZero / plonky2

Apache License 2.0
755 stars 278 forks source link

Speed-up `bn254` pairing operation #1476

Closed Nashtare closed 7 months ago

Nashtare commented 7 months ago

Speeds-up pairing computation, mostly around refactoring how address handling for reads and writes is done, following #1426.

For a regular pairing operation, it saves 11.35% of the CPU cycles count (about 165k), with a reduction of around 550k Memory rows.

Ran the Ethereum test suite on related tests: 131/131 tests ✅

Nashtare commented 7 months ago

Note to reviewers: I'd recommend hiding whitespaces when looking at the changes.

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud