Skip to content

Investigate schema parsing slowdown likely caused by schema annotations #1817

@john-h-kastner-aws

Description

@john-h-kastner-aws

Describe the improvement you'd like to request

We recently noticed a slowdown in cedar schema parsing between versions 4.2.2 and 4.3.0. This minor version added schema annotations which required a substantial change to the cedar schema grammar, but we've not done anything yet to diagnose the exact cause of the slowdown.

We see this performance degradation across a variety of different schema which don't necessarily use scehma annotations, including the gdrive, github and tinytodo schema in the cedar-examples repository. JSON schema parsing is not significantly impacted (possibly slowing down by ~5 microseconds on some inputs, but I've not timed it precisely enough to be sure).

Describe alternatives you've considered

No response

Additional context

No response

Is this something that you'd be interested in working on?

  • 👋 I may be able to implement this internal improvement
  • ⚠️ This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal-improvementRefactoring, minor performance improvement, or other changes that Cedar users may never notice

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions