prb-math icon indicating copy to clipboard operation
prb-math copied to clipboard

Investigate whether it's worth it to use ">" instead of ">="

Open PaulRBerg opened this issue 3 years ago • 1 comments

As @nonergodic has explained in this comment, it might be more gas efficient to replace all the >= CONSTANT statements with > CONSTANT-1.

My only reservation is that this might not longer be relevant if I use intermediate representation to compile the contracts. That is, >= should be as gas efficient as >.

PaulRBerg avatar Jul 03 '22 11:07 PaulRBerg