Skip to content

Processor CleanUnusedComponents gets slow between tags 4.7.16 and 4.11.1 #1792

@algorhythm

Description

@algorhythm

I upgraded from tag 4.7.16 to 4.11.1 and realized, that there is a new option in the CleanUnusedComponents processor. Formerly it was always on and we used it at any time. Now it disabled per default. So to get the same result as before I enabled the processor. When enabling it gets noticeably slower than before.

When I make a code diff I can see, that the only responsible change is the use of OpenApi\Processors\Concerns\AnnotationTrait instead of formerly call of OpenApi\Processors\Concerns\CollectorTrait. I don't dive deeper, sorry.

The result of our cleaned documentation is the same when changing the version. So it only gets massively slower? We use the generation of our API doc in a git-hook but with the newer versions we couldn't go on like this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions