Skip to content

Scheduled Txs: Optimise transaction scheduler process #544

@devbugging

Description

@devbugging

We should optimise the check that is always performed at the begining of process() function to not check the first item in the array, but instead hold the first item in array cached in a variable. This way the loading of array from storage is avoided thus reducing the execution effort used.
https://github.com/onflow/flow-core-contracts/blob/master/contracts/FlowTransactionScheduler.cdc#L483

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

🔖 Ready for Pickup

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions