R.B. Boyer 00d74abc4a
metadata: memoize the parsed build versions (#22113)
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 the hashicorp/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.
2025-02-03 16:22:10 -06:00
..
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00
2024-08-13 16:53:48 -06:00
2023-12-06 12:11:32 -05:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00