Skip to content

[Stencils opt] Overuse of inspect for the guardrails of Local #339

@FlorianDeconinck

Description

@FlorianDeconinck

In order to enforce the Local/LocalState restriction of usage we are relying heavily on inspect which is a very slow call. This call is done once in orchestration and can be ignore. But under stencil operations, it will be done every single call which will lead to performance degradation.

Potential solution:

  • cache access after the first one
  • unhook guardrails after the first check
  • unhook guardrails in "performance" mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or requestPerformancePerformance related tasks & PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions