Skip to content

Avoid cloning controllers in guards #2108

@peterpeterparker

Description

@peterpeterparker

Motivation

When I refactored the modules of the Observatory in #2107 to "hide" the state and make it accessible only through utility (read_... and mutate_...) functions, the guards for admin controllers was per extension improved by borrowing those instead of cloning. This improves a bit the performance so we should do that in every modules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions