Skip to content

1-4 second compileVariableParsing execution at runtime #244

@Dylan-G-Roberts

Description

@Dylan-G-Roberts

A bit of a Hail Mary. I've inherited a project that uses an old version of graphql-jit, 0.5.2. The project has a complex schema and runs into 1-4 second compileQuery executions at runtime.

I've added tracing the the package. Most of the runtime is in compileVariableParsing function. It's broken out further in the provided screenshot.
Screenshot 2024-04-16 at 1 01 12 PM

Could I please get some insight into this? Possible optimizations, compilation at start time, etc.

Thank you :).

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