You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
As our projects become larger and larger, swag init will be very slow to generate documents, usually taking more than half an hour, which is very painful.
Describe the solution you'd like
Looking at the source code, we found that it takes a lot of time to search for dependency packages, because all dependencies will be searched repeatedly. It is not as good as both B and C depending on A. When building B and C, A will be searched repeatedly. We add the FindPackage method. After add the cache, I found that the speed increased by nearly 10 times. The code is as follows
Is your feature request related to a problem? Please describe.
As our projects become larger and larger, swag init will be very slow to generate documents, usually taking more than half an hour, which is very painful.
Describe the solution you'd like
Looking at the source code, we found that it takes a lot of time to search for dependency packages, because all dependencies will be searched repeatedly. It is not as good as both B and C depending on A. When building B and C, A will be searched repeatedly. We add the FindPackage method. After add the cache, I found that the speed increased by nearly 10 times. The code is as follows
The text was updated successfully, but these errors were encountered: