Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was 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

@gavofyork

Description

@gavofyork

Right now, deleting a previously scheduled item results in a None "hole" in its Agenda for that block, which is not used since Scheduler just appends on Agenda 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 the Agenda should be inserted into or the entire mechanism replaced with remove or swap_remove.

Metadata

Metadata

Assignees

No one assigned

    Labels

    I7-refactorCode needs refactoring.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions