Posted on c/ElrondDevelopers 1 dmn8392211779c/ElrondDevelopers 1 year ago Hey! Anyone can tell me how I can approximate how much gas it would take to iterate through N elements of a managed vec/vecmapper? Comment 1 Comments mwf81318617 1 year ago You get the "gas left" before the first iteration and after the first iteration. Then you know how much each iteration costs. (Assuming the code inside the iteration doesn't vary to much depending on the data).
You get the "gas left" before the first iteration and after the first iteration. Then you know how much each iteration costs. (Assuming the code inside the iteration doesn't vary to much depending on the data).