kkrt-labs / kakarot-ssj

Kakarot zkEVM - rewrite in the latest version of Cairo
https://www.kakarot.org
MIT License
137 stars 83 forks source link

dev: optimize CALLDATALOAD with lookup-table based exponentiation #1004

Open enitrat opened 1 month ago

enitrat commented 1 month ago

https://github.com/kkrt-labs/kakarot-ssj/blob/6a23cedebd2899e14882af9cb4930ac664846ad8/crates/evm/src/instructions/environmental_information.cairo#L94-L98

use a POW_2_256 table to optimize this operation