This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Scheduler pallet bloats Agenda
too easily when there's lots of insertions/removals
#11565
Labels
I7-refactor
Code needs refactoring.
Right now, deleting a previously scheduled item results in a
None
"hole" in itsAgenda
for that block, which is not used since Scheduler just appends onAgenda
when adding a new item. If items are continuously inserted and deleted then this can bloat storage and become a problem.Instead,
None
items in theAgenda
should be inserted into or the entire mechanism replaced withremove
orswap_remove
.The text was updated successfully, but these errors were encountered: