Gas Optimizations #497
Labels
bug
Warden finding
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Apply updates from upstream Murky library
The upstream Murky library has added a few gas optimization changes you may want to implement yourself. Two are minor optimizations, one is more significant.
Caching
_proof.length
inMerkleBase#verifyProof
:Suggestion (link to Murky):
Using a bitwise and in place of the modulo operator in
MerkleBase#getProof
:Suggestion (link to Murky):
Replacing
log2ceil_naive
with a more efficientlog2ceilBitMagic
function:MerkleBase#getProof
Suggestion:
Link to change in upstream Murky.
Consider reviewing these recent changes to Murky and upgrading your forked implementation.
The text was updated successfully, but these errors were encountered: