Skip to content

Commit

Permalink
Add gas usage comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrom131 committed Dec 11, 2024
1 parent a8239e0 commit d825e5e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions contracts/libs/data-structures/CartesianMerkleTree.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ pragma solidity ^0.8.4;
/**
* @notice Cartesian Merkle Tree Module
*
* Gas usage for adding and removing 5,000 elements to a treap on the Poseidon and Keccak256 Hash functions is detailed below:
*
* Keccak256:
* - CMT.add - 249k
* - CMT.remove - 181k
*
* Poseidon:
* - CMT.add - 896k
* - CMT.remove - 746k
*
* ## Usage Example:
*
* ```solidity
Expand Down

0 comments on commit d825e5e

Please sign in to comment.