-
Notifications
You must be signed in to change notification settings - Fork 4.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
metadata: memoize the parsed build versions #22113
Conversation
Co-authored-by: Nathan Coleman <[email protected]>
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.
LGTM! 🚀
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:
|
2 similar comments
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:
|
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15,1.18,1.19,1.20] please perform the backport manually and add the following snippet to your backport PR description:
|
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15] please perform the backport manually and add the following snippet to your backport PR description:
|
4 similar comments
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15] please perform the backport manually and add the following snippet to your backport PR description:
|
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15] please perform the backport manually and add the following snippet to your backport PR description:
|
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15] please perform the backport manually and add the following snippet to your backport PR description:
|
📣 Hi @rboyer! a backport is missing for this PR [22113] for versions [1.15] please perform the backport manually and add the following snippet to your backport PR description:
|
Description
There will only be a small set of consul build versions that a single consul server will witness. Inside of
metadata.IsConsulServer
we use a very expensive function in thehashicorp/go-version
library to parse these into read-only*version.Version
structs all over Consul.Memoize these in a package cache map. Likely the thing will only have like 2 keys in it ever over the life of the process.