Aligning struct fields for better memory management.

This commit is contained in:
2024-06-20 08:40:55 +01:00
parent fe34a03eb8
commit a4f7e1690d
7 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -14,8 +14,8 @@ import (
// Cache for sorted label keys to avoid repeated sorting
var sortedLabelKeysCache = struct {
sync.RWMutex
m map[string][]string
sync.RWMutex
}{m: make(map[string][]string)}
func (ms *MetricsSetup) get_metrics_name(name string, labels map[string]string) string {