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.
With 5000 results the swagger-ui needs 8 seconds
With 10000 results the swagger-ui needs 30 seconds
With 50000 results the swagger-ui needs 380 seconds
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