Issue To Be Solved
There are two instances in FlowTransactionScheduler where we insert values into a sorted array where binary search would be more performant
Suggest A Solution
- Update
SortedTimestamps to use binary search
- Update
canceledTransactions to use binary search in cancel()
Context
Can use https://github.com/versus-flow/versus-contracts/blob/4fda8e3203b25fa75b6ba04193699722b86243c9/contracts/DutchAuction.cdc#L335
as an example