Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Performance issues in decdk renderFullSchema #7

@Chriscbr

Description

@Chriscbr

On my computers decdk takes over two minutes to build a simple hello-world stack, which seems a bit excessive.

Most of the effort appears to be spent in renderFullSchema(), which iterates through a lot of CPU-intensive loops while calling schemaForTypeReference(). Perhaps all this looping could be improved by building some lookup hash tables or other similar solutions?

It also seems that the rendered schema could be easily loaded from cdk.schema.json instead of generating it from scratch every time in the DeclarativeStack constructor.

Transferred from aws/aws-cdk#12349 (originally posted by @kennu).

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions