-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Reduce gas usage of SafetyChecker #209
Copy link
Copy link
Closed
Description
- 30% -- Remove the ops array, replace with (ops <<= 8; ops |= op)
- 10% -- Replace opBit = 2 ** op; with opBit = 1 << op;
- ?? -- Replace if (op == 0x00 || op == 0xfd || op == 0xfe || op == 0xf3) with a mask
- ?? -- Potentially gate the whole entry into the if logics on a mask, this is a big win!
- ?? -- Cache reads from _bytecode, 1 MLOAD per 32 bytes. Complex and annoying
- ?? -- Replace complex call logic with a simple AND thanks to new compiler
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels