{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":725847282,"defaultBranch":"master","name":"logr","ownerLogin":"mosn","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2023-12-01T01:50:08.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/58020396?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1701399399.0","currentOid":""},"activityList":{"items":[{"before":"3ddd22697b21ea3b5caac97de070387e2a946f80","after":"b4525f628027ff7e7a78baf809bc5f8755032cae","ref":"refs/heads/logil","pushedAt":"2023-12-19T04:56:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"spacewander","name":"罗泽轩","path":"/spacewander","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4161644?s=80&v=4"},"commit":{"message":"apply @thockin's suggestion\n\nSigned-off-by: spacewander ","shortMessageHtmlLink":"apply @thockin's suggestion"}},{"before":"7acd613c34c9a34fb30092af645fc9314e6784b3","after":"3ddd22697b21ea3b5caac97de070387e2a946f80","ref":"refs/heads/logil","pushedAt":"2023-12-01T02:59:24.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"spacewander","name":"罗泽轩","path":"/spacewander","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4161644?s=80&v=4"},"commit":{"message":"funcr: Add LogInfoLevel Option to skip logging level in the info log\n\nBenchmark before:\n```\ngoos: darwin\ngoarch: arm64\npkg: github.com/go-logr/logr/benchmark\nBenchmarkDiscardLogInfoOneArg-10 \t58466427\t 21.36 ns/op\t 32 B/op\t 1 allocs/op\nBenchmarkDiscardLogInfoSeveralArgs-10 \t24470527\t 49.62 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogInfoWithValues-10 \t21938677\t 47.06 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV0Info-10 \t24796845\t 47.45 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV9Info-10 \t26069977\t 49.02 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogError-10 \t23731986\t 47.94 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardWithValues-10 \t50995291\t 22.28 ns/op\t 64 B/op\t 1 allocs/op\nBenchmarkDiscardWithName-10 \t1000000000\t 0.4716 ns/op\t 0 B/op\t 0 allocs/op\nBenchmarkFuncrLogInfoOneArg-10 \t2684097\t 433.9 ns/op\t 1152 B/op\t 7 allocs/op\nBenchmarkFuncrJSONLogInfoOneArg-10 \t2413437\t 480.4 ns/op\t 1168 B/op\t 8 allocs/op\nBenchmarkFuncrLogInfoSeveralArgs-10 \t1261210\t 953.2 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoSeveralArgs-10 \t1000000\t 1003 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogInfoWithValues-10 \t1247379\t 1027 ns/op\t 1480 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoWithValues-10 \t1000000\t 1109 ns/op\t 1496 B/op\t 18 allocs/op\nBenchmarkFuncrLogV0Info-10 \t1000000\t 1043 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogV0Info-10 \t1000000\t 1100 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogV9Info-10 \t24429925\t 48.76 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrJSONLogV9Info-10 \t24799878\t 53.82 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrLogError-10 \t1000000\t 1010 ns/op\t 1480 B/op\t 19 allocs/op\nBenchmarkFuncrJSONLogError-10 \t1000000\t 1124 ns/op\t 1496 B/op\t 20 allocs/op\nBenchmarkFuncrWithValues-10 \t4088592\t 296.0 ns/op\t 264 B/op\t 8 allocs/op\nBenchmarkFuncrWithName-10 \t34046577\t 32.95 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrWithCallDepth-10 \t34601535\t 32.77 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrJSONLogInfoStringerValue-10 \t2062101\t 562.0 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoErrorValue-10 \t2278339\t 529.9 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoMarshalerValue-10 \t2108040\t 533.6 ns/op\t 1200 B/op\t 10 allocs/op\n```\n\nBenchmark after:\n```\ngoos: darwin\ngoarch: arm64\npkg: github.com/go-logr/logr/benchmark\nBenchmarkDiscardLogInfoOneArg-10 \t59617632\t 20.01 ns/op\t 32 B/op\t 1 allocs/op\nBenchmarkDiscardLogInfoSeveralArgs-10 \t26171325\t 47.09 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogInfoWithValues-10 \t25975759\t 45.76 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV0Info-10 \t25654935\t 46.02 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV9Info-10 \t25722668\t 46.00 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogError-10 \t25181846\t 45.97 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardWithValues-10 \t53340940\t 21.92 ns/op\t 64 B/op\t 1 allocs/op\nBenchmarkDiscardWithName-10 \t1000000000\t 0.4757 ns/op\t 0 B/op\t 0 allocs/op\nBenchmarkFuncrLogInfoOneArg-10 \t2887884\t 416.5 ns/op\t 1152 B/op\t 7 allocs/op\nBenchmarkFuncrJSONLogInfoOneArg-10 \t2556847\t 474.0 ns/op\t 1168 B/op\t 8 allocs/op\nBenchmarkFuncrLogInfoSeveralArgs-10 \t1280838\t 957.4 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoSeveralArgs-10 \t1000000\t 1003 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogInfoWithValues-10 \t1241484\t 967.6 ns/op\t 1480 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoWithValues-10 \t1000000\t 1021 ns/op\t 1496 B/op\t 18 allocs/op\nBenchmarkFuncrLogV0Info-10 \t1202900\t 925.3 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogV0Info-10 \t1000000\t 1021 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogV9Info-10 \t24424683\t 48.45 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrJSONLogV9Info-10 \t24633237\t 48.23 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrLogError-10 \t1000000\t 1066 ns/op\t 1480 B/op\t 19 allocs/op\nBenchmarkFuncrJSONLogError-10 \t1072557\t 1093 ns/op\t 1496 B/op\t 20 allocs/op\nBenchmarkFuncrWithValues-10 \t4094355\t 292.9 ns/op\t 264 B/op\t 8 allocs/op\nBenchmarkFuncrWithName-10 \t36661557\t 33.96 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrWithCallDepth-10 \t32008606\t 32.65 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrJSONLogInfoStringerValue-10 \t2329975\t 517.9 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoErrorValue-10 \t2200308\t 522.0 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoMarshalerValue-10 \t2242267\t 536.0 ns/op\t 1200 B/op\t 10 allocs/op\n```\n\nThe performance is similar. Only a nil pointer check is added in the main path.\n\nSigned-off-by: spacewander ","shortMessageHtmlLink":"funcr: Add LogInfoLevel Option to skip logging level in the info log"}},{"before":null,"after":"7acd613c34c9a34fb30092af645fc9314e6784b3","ref":"refs/heads/logil","pushedAt":"2023-12-01T02:56:39.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"spacewander","name":"罗泽轩","path":"/spacewander","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/4161644?s=80&v=4"},"commit":{"message":"funcr: Add LogInfoLevel Option to skip logging level in the info log\n\nBenchmark before:\ngoos: darwin\ngoarch: arm64\npkg: github.com/go-logr/logr/benchmark\nBenchmarkDiscardLogInfoOneArg-10 \t58466427\t 21.36 ns/op\t 32 B/op\t 1 allocs/op\nBenchmarkDiscardLogInfoSeveralArgs-10 \t24470527\t 49.62 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogInfoWithValues-10 \t21938677\t 47.06 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV0Info-10 \t24796845\t 47.45 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV9Info-10 \t26069977\t 49.02 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogError-10 \t23731986\t 47.94 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardWithValues-10 \t50995291\t 22.28 ns/op\t 64 B/op\t 1 allocs/op\nBenchmarkDiscardWithName-10 \t1000000000\t 0.4716 ns/op\t 0 B/op\t 0 allocs/op\nBenchmarkFuncrLogInfoOneArg-10 \t2684097\t 433.9 ns/op\t 1152 B/op\t 7 allocs/op\nBenchmarkFuncrJSONLogInfoOneArg-10 \t2413437\t 480.4 ns/op\t 1168 B/op\t 8 allocs/op\nBenchmarkFuncrLogInfoSeveralArgs-10 \t1261210\t 953.2 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoSeveralArgs-10 \t1000000\t 1003 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogInfoWithValues-10 \t1247379\t 1027 ns/op\t 1480 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoWithValues-10 \t1000000\t 1109 ns/op\t 1496 B/op\t 18 allocs/op\nBenchmarkFuncrLogV0Info-10 \t1000000\t 1043 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogV0Info-10 \t1000000\t 1100 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogV9Info-10 \t24429925\t 48.76 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrJSONLogV9Info-10 \t24799878\t 53.82 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrLogError-10 \t1000000\t 1010 ns/op\t 1480 B/op\t 19 allocs/op\nBenchmarkFuncrJSONLogError-10 \t1000000\t 1124 ns/op\t 1496 B/op\t 20 allocs/op\nBenchmarkFuncrWithValues-10 \t4088592\t 296.0 ns/op\t 264 B/op\t 8 allocs/op\nBenchmarkFuncrWithName-10 \t34046577\t 32.95 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrWithCallDepth-10 \t34601535\t 32.77 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrJSONLogInfoStringerValue-10 \t2062101\t 562.0 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoErrorValue-10 \t2278339\t 529.9 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoMarshalerValue-10 \t2108040\t 533.6 ns/op\t 1200 B/op\t 10 allocs/op\n\nBenchmark after:\ngoos: darwin\ngoarch: arm64\npkg: github.com/go-logr/logr/benchmark\nBenchmarkDiscardLogInfoOneArg-10 \t59617632\t 20.01 ns/op\t 32 B/op\t 1 allocs/op\nBenchmarkDiscardLogInfoSeveralArgs-10 \t26171325\t 47.09 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogInfoWithValues-10 \t25975759\t 45.76 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV0Info-10 \t25654935\t 46.02 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogV9Info-10 \t25722668\t 46.00 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardLogError-10 \t25181846\t 45.97 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkDiscardWithValues-10 \t53340940\t 21.92 ns/op\t 64 B/op\t 1 allocs/op\nBenchmarkDiscardWithName-10 \t1000000000\t 0.4757 ns/op\t 0 B/op\t 0 allocs/op\nBenchmarkFuncrLogInfoOneArg-10 \t2887884\t 416.5 ns/op\t 1152 B/op\t 7 allocs/op\nBenchmarkFuncrJSONLogInfoOneArg-10 \t2556847\t 474.0 ns/op\t 1168 B/op\t 8 allocs/op\nBenchmarkFuncrLogInfoSeveralArgs-10 \t1280838\t 957.4 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoSeveralArgs-10 \t1000000\t 1003 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogInfoWithValues-10 \t1241484\t 967.6 ns/op\t 1480 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogInfoWithValues-10 \t1000000\t 1021 ns/op\t 1496 B/op\t 18 allocs/op\nBenchmarkFuncrLogV0Info-10 \t1202900\t 925.3 ns/op\t 1448 B/op\t 17 allocs/op\nBenchmarkFuncrJSONLogV0Info-10 \t1000000\t 1021 ns/op\t 1448 B/op\t 18 allocs/op\nBenchmarkFuncrLogV9Info-10 \t24424683\t 48.45 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrJSONLogV9Info-10 \t24633237\t 48.23 ns/op\t 176 B/op\t 2 allocs/op\nBenchmarkFuncrLogError-10 \t1000000\t 1066 ns/op\t 1480 B/op\t 19 allocs/op\nBenchmarkFuncrJSONLogError-10 \t1072557\t 1093 ns/op\t 1496 B/op\t 20 allocs/op\nBenchmarkFuncrWithValues-10 \t4094355\t 292.9 ns/op\t 264 B/op\t 8 allocs/op\nBenchmarkFuncrWithName-10 \t36661557\t 33.96 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrWithCallDepth-10 \t32008606\t 32.65 ns/op\t 96 B/op\t 1 allocs/op\nBenchmarkFuncrJSONLogInfoStringerValue-10 \t2329975\t 517.9 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoErrorValue-10 \t2200308\t 522.0 ns/op\t 1200 B/op\t 10 allocs/op\nBenchmarkFuncrJSONLogInfoMarshalerValue-10 \t2242267\t 536.0 ns/op\t 1200 B/op\t 10 allocs/op\n\nThe peformance is similar. Only a nil pointer check is added in the main\npath.\n\nSigned-off-by: spacewander ","shortMessageHtmlLink":"funcr: Add LogInfoLevel Option to skip logging level in the info log"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"Y3Vyc29yOnYyOpK7MjAyMy0xMi0xOVQwNDo1NjoxMC4wMDAwMDBazwAAAAPNeNBC","startCursor":"Y3Vyc29yOnYyOpK7MjAyMy0xMi0xOVQwNDo1NjoxMC4wMDAwMDBazwAAAAPNeNBC","endCursor":"Y3Vyc29yOnYyOpK7MjAyMy0xMi0wMVQwMjo1NjozOS4wMDAwMDBazwAAAAO8xazs"}},"title":"Activity · mosn/logr"}