Skip to content

Openapi generation somewhat slow #2401

@Postremus

Description

@Postremus

I noticed that openapi generation takes about half the total build time of the quarkus application - at least for this reproducer.
Can this be improved?

Reproducer:
The model of this reproducer is genarated based on the openapi definition of one of my (public) real world applications, where I noticed this initially.

https://github.com/Postremus/smallrye-openapi-slow-repr

  1. mvn clean install - just to have all dependencies ready
  2. mvn quarkus:build. Remember the time noted in the log line
    [INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 13063
  3. remove quarkus-smallrye-openapi from the pom.xml
  4. mvn quarkus:build. Take note of the time noted in the log
    [INFO] [io.quarkus.deployment.QuarkusAugmentor] Quarkus augmentation completed in 6714
  5. Compare both times. Without openapi build will be much faster.

Flamegraphs:

wall-1-reverse.html
wall-1.html
cpu-1-reverse.html
cpu-1.html
alloc-1.html

No reverse graphs for the allocation profiling - process hit the memory limit..

I can provide jfr recordings over zulip / mail if desired (github does not like a 200mb file).

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