Skip to content

RedocStandalone performance issue on many circular reference #2613

Open
@Minh-Trieu

Description

@Minh-Trieu

Describe the bug
RedocStandalone have performance issue when rendering a contract with a lot of circular reference. It use a lot of memory (more than 1gb) and can often end to a browser page crash.

Issue faced on [email protected].

Expected behavior
Be able to render the contract with reasonable performance/memory consumption.

Screenshots
Using https://redocly.github.io/redoc/ show the same behaviour
Image

Additional context
Example file that reproduce the behaviour
circular_reference.txt

I also tried to to bundle deferenced with redoc cli but the generated contract was not able to be rendered by RedocStandalone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions