RapiDoc is fast enough to parse and render OpenAPI spec, but if used in a wrong manner it may lag a bit when dealing with large specs
There are many factors thats responsible to call a spec a large spec, such as
Below are some general tips that you can apply when you are dealing with slow rendering
A large spec is used for the below performance test cases |
---|
Swagger 2.0 (CAUTION !!! - browser may become unresponsive ) Most of the time is taken by swagger 2 to OpenAPI conversion |
OpenAPI 3.0 - Read Mode (okay performance) The above spec pre-converted to OpenAPI 3 - read-mode renders everything in one large page, resulting into very large DOM, the user interactions like expand collapse are not much snappier |
OpenAPI 3.0 - View Mode (fast) initial load is quick and user interaction is snappy, DOM is a bit larger than focused mode but very small compared to read mode |
OpenAPI 3.0 - Focused Mode (fastest) loads only the section that user is viewing, resulting into a small DOM footprint and snappier interactions |