stoicflame / enunciate

Build-time enhancement tool for Java-based Web services projects
http://enunciate.webcohesion.com/
Other
480 stars 201 forks source link

Performance issues with swagger-ui since enunciate 2.14.0 #1119

Closed mnisius closed 1 year ago

mnisius commented 2 years ago

I noticed very bad performance with the generated swagger-ui if I call an endpoint with a big payload. The service itself is fast but I have to wait a long time before the swagger-ui displays the results.

This does not happen with enunciate 2.13.x. Maybe its related to the new syntax highlighting in the swagger-ui? Because that’s not present in the old version.

I created a small sample project. The swagger-ui is deployed with the application so you can open http://localhost:8080/apidocs/ui/index.html call /greetingList and see for yourself.

The method itself takes 1ms-3ms on the server.

bad-performance.zip

stoicflame commented 2 years ago

Good to know, thanks for the report.

stoicflame commented 1 year ago

Version 2.15.0 of Enunciate has updated to the latest version of Swagger UI + OpenAPI 3.0.