version-4.7.2
spinnakerbot
tagged this
04 Aug 19:30
When caching large Kubernetes clusters, ~25% of allocated objects per caching cycle are from calling String.format on cache keys. String.format is significantly more expensive than String.join as it parses the input as a regular expression. In this case, we can replace the calls to .format() with calls to .join() while keeping exactly the same functionality.