-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
reduce mem. usage of unused and update staticcheck #1063
Conversation
The primary improvement is in early clearing of analyzed package's TypeInfo, facts, etc for whole program analyzers (`unused`). Clear it when it becomes unused and GC collects them early. Initially this clearing was performed for all analyzers except `unused`. Update staticcheck from v0.0.1-2019.2.3 to v0.0.1-2020.1.4 Also in this commit: * speed up loading packages from export data (2.5s -> 2.1s for std) by not using mutex for export data since it was allowed in x/tools#07722704da13 * make an order of execution of linters stable * update renameio and robustio * use robustio in caching Relates: #987, #994, #995, #1011
minReadSuccesses = attempts / 4 | ||
|
||
case "darwin": | ||
// The filesystem on macOS 10.14 occasionally fails with "no such file or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😞 why can't we have nice things?
I like the "robustio" package though (interesting)
(Also, sorry for the noise; just glancing over the code changes, and learned about this macOS bug)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep.
Also, it's copy-pasted code from Go source
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
LGTM
The primary improvement is in early clearing of
analyzed package's TypeInfo, facts, etc for
whole program analyzers (
unused
). Clear it when itbecomes unused and GC collects them early. Initially this
clearing was performed for all analyzers except
unused
.Update staticcheck from v0.0.1-2019.2.3 to v0.0.1-2020.1.4
Also in this commit:
by not using mutex for export data since it was allowed in
x/tools#07722704da13
Relates: #987, #994, #995, #1011