I have an array that stores withdrawal information of users (funds are held in a wallet not the smart contract and users can request withdrawals). In the end the withdrawals are paid out with a for loop.
If a user wants to cancel a withdrawal, what is more gas efficient? storing the index of the array in a mapping or looping through the array?
I guess up until a certain length looping is more efficient but I'm not exactly sure.