Performance issue on medium size project
unional opened this issue · comments
What happened?
My project has 30 paths and the parameters, responses, schema, are seperated into individual files.
Whenever I add a new file, currently the $ref
takes 5 sec+ to show up.
What should have happened instead?
Adding, renaming, or removing files should only affect a single entry, not causing the whole cache to drop and rebuild.
And the rebuild likely shouldn't take that long
Minimal reproducible OpenAPI snippet
If possible, include a short example of your OpenAPI definition that we can use to simulate the problem.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other information about the problem here, like: the extension version number; OpenAPI version you're using in your definition; your operating system.
MacOS on Macbook M1 Pro, OpenAPI 3.0, Redocly extension 0.4.4
Thanks for letting us know @unional! Have you noticed the performance issue compared to a previous version, or is this the first time you're using the extension?
It seems to exist for a while. I checked 0.3.0 with similar result.
I recently break the spec into smaller files, and also include files from other packages (e.g. https://github.com/unional/iso-error/tree/main/packages/google-cloud-api/open_api) by copying (from node_modules
to local gitignored folder for level access).
Thanks for the additional details!