-
Notifications
You must be signed in to change notification settings - Fork 103
refactor(analyzer): use packages.Load instead of build.Import to get better performance #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/cc @xpofei |
…better performance
|
release note 填一下吧 😋 |
Done |
|
/lgtm |
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: iawia002, xpofei The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
There are basically two changes: first, use
packages.Loadinstead ofbuild.Importto analyze a package, and second, import all packages at once rather than individually.Take storage-admin project as an example, API document generation:
API client generation:
The average time reduced from 8 minutes to half a minute.
Which issue(s) this PR is related to (optional, link to 3rd issue(s)):
Fixes #
Reference to #
Special notes for your reviewer:
/cc @your-reviewer
/kind feature
Release note: