Improve logging and cache sub-packages to decrease the number of allocations

and improve performance.
This commit is contained in:
2024-05-14 09:21:16 +01:00
parent c3e5b85f57
commit 5a01ec3876
9 changed files with 121 additions and 500 deletions
+1
View File
@@ -25,6 +25,7 @@ func BenchmarkInfoLog(b *testing.B) {
}()
testsLogger := NewLogger()
b.ResetTimer()
for i := 0; i < b.N; i++ {
testsLogger.Info("test", map[string]interface{}{"test": "test"})
}